Software Update Services Client-Side Management Uninstall an Update
' Uninstall an Update
Set objCollection = CreateObject("Microsoft.Update.UpdateColl")
Set objSearcher = CreateObject("Microsoft.Update.Searcher") Set objResults = objSearcher.Search _ ("UpdateID='ac94db3b-e1a8-4e92-9fd0-e86f355e6a44'")
Set colUpdates = objResults.Updates Wscript.echo colUpdates.count
objCollection.Add(colUpdates.Item(0)) Wscript.echo objCollection.count
Set objInstaller = CreateObject("Microsoft.Update.Installer") objInstaller.Updates = objCollection
Set objInstallResults = objInstaller.Uninstall Wscript.Echo objInstallResults.Exception Wscript.Echo objInstallResults.RebootRequired Wscript.Echo objInstallResults.ResultCode
|
VbsEdit includes all these samples!
Download Now!
Version 5.4.1 - This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit. The evaluation version never expires.
Home
|