Skip to content

Commit

Permalink
增加 26100+启用 sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Oct 16, 2024
1 parent 5e88aa1 commit 3d858d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions osc/optimize/start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ if %osver% GEQ 4 (
echo 恢复传统右键菜单
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
)
if !bigversion! GEQ 26100 (
if exist "%SystemDrive%\Windows\System32\sudo.exe" (
echo 启用 sudo
sudo config --enable enable
)
)
)
) else if %osver% GEQ 2 (
schtasks /change /tn "\Microsoft\Windows\SystemRestore\SR" /disable
Expand Down

0 comments on commit 3d858d3

Please sign in to comment.