-
-
Save pythoninthegrass/cb0aae4d2c769fdaa29fe87b46efd6b5 to your computer and use it in GitHub Desktop.
Register Windows Server 2012 r2 to wsus server via registry keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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