Created
December 8, 2012 15:58
-
-
Save kkamegawa/4240828 to your computer and use it in GitHub Desktop.
Deny Itanium patch in Windows Server 2012's WSUS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wsus = Get-WsusServer -name localhost -PortNumber 8530 | |
$ia64 = $wsus.GetUpdates() | Where-Object {$_.title.indexof("Itanium") -gt 1 -and $_.title.indexof("x64") -eq -1 -and $_.ArrivalDate -gt [datetime]::Now.AddDays(-7)} | |
foreach($patch in $ia64) { | |
Get-WsusUpdate -UpdateId $patch.id.updateid | Deny-WsusUpdate | |
} | |
$wsus | Invoke-WsusServerCleanup -CleanupObsoleteUpdates -CleanupUnneededContentFiles -CompressUpdates -DeclineExpiredUpdates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment