windows10禁止更新

1、 WIN10 禁止自动更新

转载于https://jingyan.baidu.com/article/1e5468f94dc9a3484961b7a8.html

方法一:(注册表方式关闭)

在cortana中输入gpedit.msc ,打开通用管理文档

 

选择【计算机配置】-》【管理模板】-》【windows组件】

 

在右边【配置自动更新】,双击,然后选择已禁用

方法二:(服务关闭)

在cmd中输入services.msc ,打开服务列表

 

找到【windows update】 ,把启动类型改为禁用。

 

方法三:(界面设置)

点击开始,选择【设置】按钮

 

在设置中选择【更新和安全】

在更新设置中,进行相应修改和查看

查看配置的更新策略

方法四:(使用脚本关闭win10自动更新)

同时按住win+x键,然后选中POWER SHELL,一定要管理员模式

Clear-Host

$WindowsUpdatePath = "HKLM:SOFTWAREPoliciesMicrosoftWindowsWindowsUpdate"

$AutoUpdatePath = "HKLM:SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU"

If(Test-Path -Path $WindowsUpdatePath) {

    Remove-Item -Path $WindowsUpdatePath -Recurse

}

New-Item $WindowsUpdatePath -Force

New-Item $AutoUpdatePath -Force

Set-ItemProperty -Path $AutoUpdatePath -Name NoAutoUpdate -Value 1

Get-ScheduledTask -TaskPath "MicrosoftWindowsWindowsUpdate" | Disable-ScheduledTask

takeown /F C:WindowsSystem32TasksMicrosoftWindowsUpdateOrchestrator /A /R

icacls C:WindowsSystem32TasksMicrosoftWindowsUpdateOrchestrator /grant Administrators:F /T

Get-ScheduledTask -TaskPath "MicrosoftWindowsUpdateOrchestrator" | Disable-ScheduledTask

Stop-Service wuauserv

Set-Service wuauserv -StartupType Disabled

Write-Output "已经关闭所有的windows更新"

个人建议直接走脚本(方法四)

原文地址:https://www.cnblogs.com/lixianglong/p/12193346.html