fix rebooting into normal mode

This commit is contained in:
2024-04-22 16:18:27 -04:00
parent 27a12a2b02
commit ecc9ebcc72
+1 -1
View File
@@ -14,7 +14,7 @@ call :configure-service SplashtopRemoteService
:schedule-normal-reboot
call :reset-errorlevel
echo Configuring system to reboot into Normal Mode at next reboot
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v "*RestartNormalMode" /t REG_SZ /d "%SystemRoot%\System32\bcdedit.exe /deletevalue {default} safeboot" /f > nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce" /v "*RestartNormalMode" /t REG_SZ /d "cmd.exe /c %SystemRoot%\System32\bcdedit.exe /deletevalue {default} safeboot" /f > nul 2>&1
if %ERRORLEVEL% GTR 0 (
set /a REBOOT=%REBOOT%+1
echo ERROR: could not configure reboot into normal mode