Write-Host "==> Installing WSUS with WID..." -ForegroundColor Cyan Install-WindowsFeature UpdateServices, UpdateServices-Services, UpdateServices-WidDB, UpdateServices-UI -IncludeManagementTools Write-Host "==> Running WSUS post-install task..." -ForegroundColor Cyan & "C:\Program Files\Update Services\Tools\wsusutil.exe" postinstall CONTENT_DIR="C:\WSUS" Write-Host "✅ WSUS installation complete. You can now open the WSUS Console." -ForegroundColor Green