Using the setupcomplete.cmd
file offers an alternative, and perhaps more traditional, approach to adding commands compared to the unattend.xml
method
It is a cmd file to be placed in c:\windows\setup\scripts with name setupcomplete.cmd
Caution: The file runs under the system account privileges.
Upon execution, a black command window appears. Ensure that no commands within this script are overly time-consuming, as there’s a potential risk of abrupt system reboots. Technicians or users might mistakenly assume the installation process has stalled and force a restart.
Resource: Microsoft
Pro Tip: Some manufacturers still employ this method in their master images. If you’re working with a manufacturer’s image, it’s wise to verify the existence of this file.
0 Comments