Skip to content

Instantly share code, notes, and snippets.

@mwjcomputing
Created March 13, 2013 15:48
Show Gist options
  • Select an option

  • Save mwjcomputing/5153424 to your computer and use it in GitHub Desktop.

Select an option

Save mwjcomputing/5153424 to your computer and use it in GitHub Desktop.
$wmiQuery = Get-WmiObject -Class Win32_QuickFixEngineering -ComputerName $pcName -Filter "HotFixID=$kbs"
if ($wmiQuery) {
#do stuff
} else {
# do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment