Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Forked from trodemaster/wsus_client.ps1
Created January 11, 2017 23:49
Show Gist options
  • Save pythoninthegrass/cb0aae4d2c769fdaa29fe87b46efd6b5 to your computer and use it in GitHub Desktop.
Save pythoninthegrass/cb0aae4d2c769fdaa29fe87b46efd6b5 to your computer and use it in GitHub Desktop.
Register Windows Server 2012 r2 to wsus server via registry keys
New-Item -Path "HKLM:Software\Policies\Microsoft\Windows\WindowsUpdate"
New-Item -Path "HKLM:Software\Policies\Microsoft\Windows\WindowsUpdate\AU"
Set-ItemProperty -Path "HKLM:\software\policies\Microsoft\Windows\WindowsUpdate" -Name WUServer -Value "http://wsus.domain.com:8530" -Type String -force
Set-ItemProperty -Path "HKLM:\software\policies\Microsoft\Windows\WindowsUpdate" -Name WUStatusServer -Value "http://wsus.domain.co:8530" -Type String -force
Set-ItemProperty -Path "HKLM:\software\policies\Microsoft\Windows\WindowsUpdate\AU" -Name UseWUServer -Value "1" -Type DWORD -force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment