windows stop update

每次開VM看到windows跑更新都傻眼.

# stop
sc config wuauserv start= disabled
net stop wuauserv

sc config bits start= disabled
net stop bits

sc config dosvc start= disabled
net stop dosvc

pause
# start
sc config wuauserv start= auto
net start wuauserv

sc config bits start= auto
net start bits

sc config dosvc start= auto
net start dosvc

pause

第三方工具

https://greatis.com/stopupdates10

https://www.sordum.org/9470/windows-update-blocker-v1-8/

這個比較狠, 可以暫停更新3萬天. 適用win10&11

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v FlightSettingsMaxPauseDays /t reg_dword /d 36500 /f