Day: March 24, 2014

  • Detect Installed KB with Powershell & VBScript for SCCM 2012

    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”>&quot;.&quot;</span> <span class=”rem”>’Run the query</span> <span class=”kwrd”>Set</span> objWMIService = GetObject(<span class=”str”>&quot;winmgmts:&quot;</span> _…