get-hotfix | Where-Object {$_.HotFixID -match “KB2835517”}
wusa.exe “Windows6.3-KB2835517-x64.msu” /quiet /norestart /log:%WINDIR%\Temp\Install_SDC_Microsoft_MediaPack_1.0_01.00_ML.log
wusa.exe /uninstall “Windows6.3-KB2835517-x64.msu” /kb:KB2703761 /quiet /norestart /log:%WINDIR%\Temp\Uninstall_SDC_Microsoft_MediaPack_1.0_01.00_ML.log
_____________________________________________________________
<span class=”rem”>’Returns info if Windows Management Framework 3 in installed</span>
<span class=”rem”>’ ———————————————————-‘ </span>
<span class=”kwrd”>Option</span> Explicit
<span class=”kwrd”>Dim</span> objWMIService, strComputer
strComputer = <span class=”str”>"."</span>
<span class=”rem”>’Run the query</span>
<span class=”kwrd”>Set</span> objWMIService = GetObject(<span class=”str”>"winmgmts:"</span> _
& <span class=”str”>"{impersonationLevel=impersonate}!\\"</span> _
& strComputer & <span class=”str”>"\root\cimv2"</span>)
<span class=”kwrd”>Dim</span> QFEs
<span class=”kwrd”>Dim</span> QFE
<span class=”kwrd”>Set</span> QFEs = objWMIService.ExecQuery (<span class=”str”>"Select * from win32_QuickFixEngineering where HotFixID like ‘KB2506143’"</span>)
<span class=”kwrd”>For</span> <span class=”kwrd”>Each</span> QFE <span class=”kwrd”>in</span> QFEs
Wscript.echo <span class=”str”>"Update KB2506143 was installed by "</span> & QFE.InstalledBy & <span class=”str”>" on "</span> & QFE.InstalledOn
<span class=”kwrd”>Next</span>
WScript.Quit
Leave a Reply