win10
在cortana中输入gpedit.msc ,打开通用管理文档
选择【计算机配置】-》【管理模板】-》【windows组件】
在右边【配置自动更新】,双击,然后选择已禁用。
在cmd中输入services.msc ,打开服务列表
找到【windows update】 ,把启动类型改为禁用。
点击开始,选择【设置】按钮
在设置中选择【更新和安全】
在更新设置中,进行相应修改和查看
查看配置的更新策略
同时按住win+x键,然后选中POWER SHELL,一定要管理员模式
执行下面语句:Clear-Host$WindowsUpdatePath = 'HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\'$AutoUpdatePath = 'HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU'If(Test-Path -Path $WindowsUpdatePath) { Remove-Item -Path $WindowsUpdatePath -Recurse}New-Item $WindowsUpdatePath -ForceNew-Item $AutoUpdatePath -ForceSet-ItemProperty -Path $AutoUpdatePath -Name NoAutoUpdate -Value 1Get-ScheduledTask -TaskPath '\Microsoft\Windows\WindowsUpdate\' | Disable-ScheduledTasktakeown /F C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator /A /Ricacls C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator /grant Administrators:F /TGet-ScheduledTask -TaskPath '\Microsoft\Windows\UpdateOrchestrator\' | Disable-ScheduledTaskStop-Service wuauservSet-Service wuauserv -StartupType DisabledWrite-Output '已经关闭所有的windows更新'
根据需要进行选择,建议直接跑脚本