I\'ve written a script to search/download/install Windows Updates on a machine using the Microsoft.Update.Session COM Object. When run locally it works just fine, however wh
The other solution is to change Windows registry setting using PowerShell and optionally restart wuauserv for the changes to take effect.
wuauserv
For example in Windows Server 2008R2 AutoUpdate settings can be found at:
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update