var updateSession = WScript.CreateObject("Microsoft.Update.Session");
var updateSearcher = updateSession.CreateUpdateSearcher();
updateSearcher.Online = false;
// this part must be changed? this is the language pack section. I want to search the entire database that isn't installed and filter by KB###### rather than category.
var searchResult = updateSearcher.Search("CategoryIDs Contains 'cd5ffd1e-e932-4e3a-bf74-18bf0b1bbd83' And IsInstalled=0");
for(var i=0; i<searchResult.Updates.Count; i++){
var update = searchResult.Updates.Item(i);
WScript.echo("Hiding:" + update.Title);
update.IsHidden = true;
}
I can't work out how to modify this script so that it will hide certain specific updates filtered by KBtitle
such as KB2483139 KB915597 KB971033 KB890830
actually just these 4.
Thanks



Help

Back to top









