Skip to content

Instantly share code, notes, and snippets.

@joeypiccola
Created July 22, 2016 19:50
Show Gist options
  • Save joeypiccola/5b7427dbf199efcf4ece6abbeffcd58b to your computer and use it in GitHub Desktop.
Save joeypiccola/5b7427dbf199efcf4ece6abbeffcd58b to your computer and use it in GitHub Desktop.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_QuickFixEngineering",,48)
For Each objItem in colItems
If objItem.HotfixID = "KB3125574" then
Wscript.Echo "true"
End If
Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment