Windows – Can you change windows update settings via command line

command-line-interfaceupdatewindows

I sent out some servers(running server 2008R2 x64) without checking their windows update settings…fail. By default they are set to automatically download and install. I need them to download but not install. Can this be done through command-line? RDP is not an option.

Best Answer

If the computers are in a domain, you can configure this setting via Group Policy.

Otherwise, you can manually configure the relevant Registry value:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\AUOptions
  1. Don't check
  2. Check but don't download
  3. Download but don't install
  4. Download and install