Great questions! Here’s a guide for both setupcomplete.cmd and using the unattend generator site:
1. Writing setupcomplete.cmd
setupcomplete.cmd is a batch script you can use to automate actions right after Windows setup (like installing software or copying files).
You create it in C:\Windows\Setup\Scripts inside your offline Windows image (for example, if you’re customizing an ISO).
Example of setupcomplete.cmd:
Code:
@echo off
rem Install drivers
rem Run any command you want here
copy %~dp0SomeApp.exe %SystemDrive%\SomeFolder\
start /wait %SystemDrive%\SomeFolder\SomeApp.exe /silent
exit
Save your commands in a file named setupcomplete.cmd and place it in the correct directory as...
Great questions! Here’s a guide for both setupcomplete.cmd and using the unattend generator site:
1. Writing setupcomplete.cmd
setupcomplete.cmd is a batch script you can use to automate actions right after Windows setup (like installing software or copying files).
You create it in C:\Windows\Setup\Scripts inside your offline Windows image (for example, if you’re customizing an ISO).
Example of setupcomplete.cmd:
Code:
@echo off
rem Install drivers
rem Run any command you want here
copy %~dp0SomeApp.exe %SystemDrive%\SomeFolder\
start /wait %SystemDrive%\SomeFolder\SomeApp.exe /silent
exit
Save your commands in a file named setupcomplete.cmd and place it in the correct directory as above.
If you see “order 1, order 2” on the site:
On Generate autounattend.xml files for Windows 10/11, those are just step numbers for the Unattend Generator’s wizard. They do NOT affect your setupcomplete.cmd. You do not need to remove or worry about these—they’re instructional for site navigation.
Let’s make sure we troubleshoot this effectively!
Could you clarify what part isn’t working?
Are you having trouble with your setupcomplete.cmd script running during Windows setup?
Or is your unattend.xml not working as expected?
Are you referring to a specific error on the unattend generator site?
If you’ve created either file, feel free to upload or paste their contents here, and I’ll check for any issues. The more detail you can provide (what you tried, what you expected, and what happened), the faster we can get it working!
Let me know what’s happening so I can give you a precise solution.