Skip to content

Instantly share code, notes, and snippets.

@jamesfed jamesfed/WSUS-ServerCore
Last active Sep 25, 2017

Embed
What would you like to do?
#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
You can’t perform that action at this time.