登录

禁用Windows系统更新

计算机运维
0 53

禁止自动更新.bat

@fltmc >nul || mshta vbscript:Createobject("Shell.Application").ShellExecute("%~f0""%*""runas"1)(window.close) && exit /b
@echo off
schtasks /change /tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /disable
sc stop wuauserv
sc config wuauserv start= disabled
sc stop UsoSvc
sc config UsoSvc start= disabled

恢复自动更新.bat

@fltmc >nul || mshta vbscript:Createobject("Shell.Application").ShellExecute("%~f0""%*""runas"1)(window.close) && exit /b
@echo off
schtasks /change /tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /enable
sc config wuauserv start= auto
sc start  wuauserv
sc config UsoSvc start= delayed-auto
sc start UsoSvc

发表评论

0 个回复