Last active
September 25, 2017 13:43
-
-
Save jamesfed/a225deec5b2deba7aab9ffd6eda51a9d to your computer and use it in GitHub Desktop.
This file contains 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
#Install WSUS and the IIS Web Management Service | |
Install-WindowsFeature -Name UpdateServices, Web-Mgmt-Service | |
#Create a new directory to store Updates in | |
New-Item -Path C: -Name WSUS -ItemType Directory | |
#Run the post install tasks | |
cd "C:\Program Files\Update Services\Tools" | |
.\wsusutil.exe postinstall CONTENT_DIR=C:\WSUS | |
#Start the Web Management Service | |
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1 | |
Set-Service -Name WMSvc -StartupType Automatic | |
Start-Service -Name WMSvc | |
#Import Certificate | |
cd c:\temp | |
certutil -p SUPERAWESOMEPASSWORD -importPFX '.\Cert with Key.pfx' | |
#Enable SSL for WSUS | |
cd "C:\Program Files\Update Services\Tools" | |
.\WSUSUtil.exe configuressl fqdnofthedomainbeingused |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment