changed from current to default boot option
This commit is contained in:
@@ -14,7 +14,7 @@ call :configure-service SplashtopRemoteService
|
|||||||
:schedule-normal-reboot
|
:schedule-normal-reboot
|
||||||
call :reset-errorlevel
|
call :reset-errorlevel
|
||||||
echo Configuring system to reboot into Normal Mode at next reboot
|
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 {current} safeboot" /f > nul 2>&1
|
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
|
||||||
if %ERRORLEVEL% GTR 0 (
|
if %ERRORLEVEL% GTR 0 (
|
||||||
set /a REBOOT=%REBOOT%+1
|
set /a REBOOT=%REBOOT%+1
|
||||||
echo ERROR: could not configure reboot into normal mode
|
echo ERROR: could not configure reboot into normal mode
|
||||||
@@ -22,7 +22,7 @@ if %ERRORLEVEL% GTR 0 (
|
|||||||
|
|
||||||
:configure-reboot-safemodewithnetworking
|
:configure-reboot-safemodewithnetworking
|
||||||
call :reset-errorlevel
|
call :reset-errorlevel
|
||||||
"%SystemRoot%\System32\bcdedit.exe" /set {current} safeboot network
|
"%SystemRoot%\System32\bcdedit.exe" /set {default} safeboot network
|
||||||
if %ERRORLEVEL% GTR 0 (
|
if %ERRORLEVEL% GTR 0 (
|
||||||
set /a REBOOT=%REBOOT%+1
|
set /a REBOOT=%REBOOT%+1
|
||||||
echo ERROR: could not restart into Safe Mode with Networking
|
echo ERROR: could not restart into Safe Mode with Networking
|
||||||
|
|||||||
Reference in New Issue
Block a user