I am having a heck of a time removing a patch from the $updates patch collection. We have one that we do not want to install. Using attempts like $updates.remove are not working. Has anyone accomplished this before?
thanks
$updateSession = new-object -com "Microsoft.Update.Session"
Write-Host("Searching for applicable updates...") -Fore Green
$updates=$updateSession.CreateupdateSearcher().Search($criteria).Updates
$downloader = $updateSession.CreateUpdateDownloader()
$downloader.Updates = $Updates
foreach ($y in $updates){$y.kbarticleIDs}
(section to remove a KB from $updates, based on KB)
- Edited by Pauld_26 Friday, January 06, 2012 11:03 PM