Hello,
I can't force a reboot of the workstation at the end of the system installation using SetupComplete.cmd.
Sample test:
@ECHO OFF
CD "%TEMP%"&CLS&@TITLE Post-Installation Tasks
mkdir c:\TEMP & echo. > c:\TEMP\test.txt
CD C:\Windows\System32 & shutdown.exe /r /t 0 /f
del /q /f "%WINDIR%\Setup\ScriptsNTLCompName.vbs"
del /q /f "%0"
The folder and txt are created but no reboot afterwards. The cmd runs correctly but does not take the reboot. Any ideas? Thank you.
For your information, I've already tried :
Ben
I can't force a reboot of the workstation at the end of the system installation using SetupComplete.cmd.
Sample test:
@ECHO OFF
CD "%TEMP%"&CLS&@TITLE Post-Installation Tasks
mkdir c:\TEMP & echo. > c:\TEMP\test.txt
CD C:\Windows\System32 & shutdown.exe /r /t 0 /f
del /q /f "%WINDIR%\Setup\ScriptsNTLCompName.vbs"
del /q /f "%0"
The folder and txt are created but no reboot afterwards. The cmd runs correctly but does not take the reboot. Any ideas? Thank you.
For your information, I've already tried :
- shutdown.exe /r /t 0 /f
- CD C:\Windows\System32 & shutdown.exe /r /t 0 /f
- C:\Windows\System32\shutdown.exe /r /t 0 /f
Ben
Last edited: