diff --git a/api/api.bat b/api/api.bat index 4684c8e..d0618b8 100644 --- a/api/api.bat +++ b/api/api.bat @@ -370,6 +370,7 @@ if exist "%SystemDrive%\Windows\Setup\xrsyssearchapi.txt" ( reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f /v "XRSYSAPI" for /f "delims= " %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /t REG_EXPAND_SZ ^| find /i "Unattend"') do reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v %%i /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f /v "XRSYSAPI" /t REG_SZ /d "%~dp0osc.exe /S /5" +shutdown -r -t 0 goto end :jzm