Skip to content

Commit

Permalink
增加 进桌面前重启
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed May 1, 2024
1 parent 9bbefbb commit 22e04f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/api.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22e04f8

Please sign in to comment.