Yes, my PC is attached to a domain, but I don't see what that has to do with anything.
The SetupComplete.cmd plays well because it creates the temp folder with the txt but the shutdown is not taken into account. I have the same problem if I run it with another script:
@ECHO OFF
CD...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.