Solution
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.

2. Preparing an unattend.xml on the site​

  • Go to the unattend generator: Windows Unattend Generator
  • Follow the site’s steps (order 1, order 2, etc. to select configuration options and fill in values for your Windows installation.
  • When finished, the site creates and shows you the unattend.xml.
  • Download the generated unattend.xml and place it in the correct Windows setup location (usually in your image at C:\Windows\Panther\unattend.xml).

In summary:
  • “Order 1, order 2” are just steps—ignore them for your setupcomplete.cmd and unattend.xml.
  • Write your setupcomplete.cmd as you wish, save and place it as above.
  • Use the site to make your unattend.xml, following its wizard.
If you need help with commands inside setupcomplete.cmd or customizing unattend.xml options, just let me know what you want to automate or configure!
 

Last edited by a moderator:
Solution
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.
 

Back
Top