So, problem is there are 7 different versions of Silverlight. Some are older, some are newer.
Vous pouvez manually Hide, "Recherchez Updates", Options, Hide them in a loop 7 or more times. Je ne veux pas to do that manually so I wrote a WSH js, save as WUA_xSilverlight.js:
var wu_Session = WScript.CreateObject("Microsoft.Update.Session");
var wu_Searcher = wu_Session.CreateUpdateSearcher();
wu_Searcher.Online = false;
do {
WScript.echo("Searching...");
var silverstreak = false;
var searchResult = wu_Searcher.Search("IsHidden=0 And IsInstalled=0");
for(var i=0; i<searchResult.Updates.Count; i++){
var wupdate = searchResult.Updates.Item(i);
if ( ! wupdate.Title.indexOf("Microsoft Silverlight") ) { // if -1
wupdate.IsHidden=1;
WScript.echo(" Hiding update: " + wupdate.Title);
silverstreak = true;
}
}
} while ( silverstreak ); // repeat search
Execute the saved file: cscript.exe WUA_xSilverlight.js.
I could have optimized the search and so the code, but ça fonctionne so blah.