Skip to content

Instantly share code, notes, and snippets.

@jamesfed
Last active September 25, 2017 13:43
Show Gist options
  • Save jamesfed/a225deec5b2deba7aab9ffd6eda51a9d to your computer and use it in GitHub Desktop.
Save jamesfed/a225deec5b2deba7aab9ffd6eda51a9d to your computer and use it in GitHub Desktop.
#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