Add WSUS_Install.ps1

This commit is contained in:
2025-07-06 17:09:43 +00:00
parent a5a03ec410
commit e60ef44393

7
WSUS_Install.ps1 Normal file
View File

@@ -0,0 +1,7 @@
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