Yıl: 2021

PowerShell ile WSUS Cleanup Script

# WSUSCleanupscript.ps1 [reflection.assembly]::LoadWithPartialName(“Microsoft.UpdateServices.Administration”)` | out-null $wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer(); $cleanupScope = new-object Microsoft.UpdateServices.Administration.CleanupScope; $cleanupScope.DeclineSupersededUpdates = $true $cleanupScope.DeclineExpiredUpdates = $true $cleanupScope.CleanupObsoleteUpdates = […]