Forum Discussion

Holaway's avatar
Holaway
Steel Contributor
Mar 07, 2025

reboot after setupcomplete

Hey,

during my setupcomplete.cmd I am performing some windows updates etc. (stuff which requires a restart).
Microsoft clearly states not to include a reboot command within setupcomplete.cmd as the windows install process might be interrupted.

So what are my options to automatically trigger a restart as soon as windows install process is complete?

Current idea would be within setupcomplete.cmd to start a separated, not waited powesrshell which checks if windeploy process is still running and if not fires a shutdown /r /t 60

different ideas with benefits?

1 Reply

  • Boboin's avatar
    Boboin
    Iron Contributor

    Add shutdown /a at the end of setupcomplete.cmd to cancel automatic restart, or use Windows System Image Manager to configure unattended installation files.