使用 Powershell 更改 Windows 更新设置 [英] Change windows updates setting with Powershell
本文介绍了使用 Powershell 更改 Windows 更新设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Windows Server 2008 r2,并尝试配置 PowerShell 脚本以更改要下载的 Windows 更新的设置,但让我选择安装.
Im working with Windows Server 2008 r2, and trying to configure a PowerShell script to change the settings of windows updates to download but let me choose to install.
推荐答案
您可以使用以下命令直接从注册表中完成:
You can do it right from the registry with this command:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\AUoptions" -Name newproperty -Value "4"
这篇关于使用 Powershell 更改 Windows 更新设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文