Hi,
Iβve got a SetupComplete.cmd file in my sources $OEM$$$\Setup\Scripts folder which from my understanding runs once after installation is completed. Iβm trying to do an unattended install and have my autounattend.xml file configured and working as required though Iβm struggling with having the setupcomplete.cmd run as I donβt see the required results.
For testing purposes, this is what Iβve got in my setupcomplete.cmd:
[ICODE]wmic cpu get Name > C:\cpu.txt wmic bios get serialnumber > C:\SerialNumber.txt devmgmt.msc /s[/ICODE]
Neither do I see those 2 files created, nor does the device manager open up.
Iβm using an OEM image, and found an article ( Add a Custom Script to Windows Setup | Microsoft Learn ) which mentions:
Is that why Iβm not seeing results from the setupcomplete.cmd file? How can I workaround this? Is it something I can achieve via RunSynchronousCommand? I also want to make some more modifications such as adding desktop icons to the desktop and disable sleep on power being connected (even though drivers are not installed).
Iβve got a SetupComplete.cmd file in my sources $OEM$$$\Setup\Scripts folder which from my understanding runs once after installation is completed. Iβm trying to do an unattended install and have my autounattend.xml file configured and working as required though Iβm struggling with having the setupcomplete.cmd run as I donβt see the required results.
For testing purposes, this is what Iβve got in my setupcomplete.cmd:
[ICODE]wmic cpu get Name > C:\cpu.txt wmic bios get serialnumber > C:\SerialNumber.txt devmgmt.msc /s[/ICODE]
Neither do I see those 2 files created, nor does the device manager open up.
Iβm using an OEM image, and found an article ( Add a Custom Script to Windows Setup | Microsoft Learn ) which mentions:
This setting is disabled when using OEM product keys.
Comment