Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Created December 1, 2014 19:17
Show Gist options
  • Save trodemaster/aa42586fdf87a928248a to your computer and use it in GitHub Desktop.
Save trodemaster/aa42586fdf87a928248a 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