From ecc9ebcc72a47c93c69d9f05d67c815478c18329 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Mon, 22 Apr 2024 16:18:27 -0400 Subject: [PATCH] fix rebooting into normal mode --- Fix-RebootIntoSafeMode.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fix-RebootIntoSafeMode.bat b/Fix-RebootIntoSafeMode.bat index 124a8ad..6a7c80e 100644 --- a/Fix-RebootIntoSafeMode.bat +++ b/Fix-RebootIntoSafeMode.bat @@ -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