How to restart after SetupComplete.cmd?

LTSB

Member
How can I restart after SetupComplete.cmd has finished executing? Right now the VM never restarts it just logs in and the bootrec never updates.

I have the following commands in the file:

@echo off bcdedit /set disabledynamictick yes bcdedit /set bootmenupolicy legacy bcdedit /set quietboot on del /q /f "%0" shutdown –r –f –t 00
 
At the end of the batch file, i have these lines:
Code:
shutdown /r /t 5
rmdir /s /q %~dp0
del /q /f "%0"
 
Back
Top