PowerShell Module to automate and accelerate WSUS deployments and migrations.
- Install required Windows Features
Install-WindowsFeature UpdateServices-Services,UpdateServices-WIDDB -IncludeManagementTools
- Run Post-Installation
Start-Process -FilePath 'C:\Program Files\Update Services\Tools\wsusutil.exe' -ArgumentList 'postinstall CONTENT_DIR=C:\WSUS'
- Browse to Module Directory
- Import Module
Import-Module .\WsusMgmt.psd1
- Start First Sync (proxy and asjob are optional parameters)
Start-WsusInitialization
- Configured desired products and classifications
- Sync WSUS against Microsoft Update
- (Optional) Sync approved and declined updates against existing WSUS server
Sync-WsusApprovedUpdates -OldWsusServerName wsus.contoso.com