Change windows updates setting with Powershell

user1604046 picture user1604046 · Aug 16, 2012 · Viewed 8.6k times · Source

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.

Answer

Nick picture Nick · Aug 16, 2012

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"