Skip to content

Commit

Permalink
移除 刷新组策略
Browse files Browse the repository at this point in the history
xrgzs committed Oct 2, 2024
1 parent 54a405a commit c113543
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions osc/optimize/start.bat
Original file line number Diff line number Diff line change
@@ -275,8 +275,6 @@ if %osver% GEQ 4 (
schtasks /change /tn "\Microsoft\Windows\Media Center\mcupdate" /disable
)

echo 刷新组策略
start /min gpupdate /force
echo [OSC]正在优化浏览器配置...>"%systemdrive%\Windows\Setup\wallname.txt"
if exist "FUCKBrowserConfig.bat" start "" /wait /min "FUCKBrowserConfig.bat"
if exist "bookmarks.exe" start "" /wait /min "bookmarks.exe"
2 changes: 0 additions & 2 deletions osc/runonce.bat
Original file line number Diff line number Diff line change
@@ -145,7 +145,5 @@ if exist "%systemdrive%\Windows\Setup\xrsysuac.txt" (
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD /d 1 /f
)

rem update group policy
gpupdate /force
echo successfulrunonce>"%SystemDrive%\Windows\Setup\oscstate.txt"
start /min cmd /c del /f /q %0

0 comments on commit c113543

Please sign in to comment.