Here is a handy little script that cleans up WSUS 3 Automatically
[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 = $true
$cleanupScope.CompressUpdates = $true
#$cleanupScope.CleanupObsoleteComputers = $true
$cleanupScope.CleanupUnneededContentFiles = $true
$cleanupManager = $wsus.GetCleanupManager();
Hi, What should this GFi script be saved as? .?
This script is powershell. should be saved as a .ps1
No matter whether there is snow on the ground or bright sunlight shining down, New Jersey is a beautiful place to look at, and an ever better place to call home. Perhaps this is why home values in New Jersey remain so high, not because of their size or shape, but because of the nature of community within the borders.
Your email address will not be published. Required fields are marked *