Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Created July 7, 2017 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techthoughts2/761884d6a993c2d36c430fc27f2ac9c8 to your computer and use it in GitHub Desktop.
Save techthoughts2/761884d6a993c2d36c430fc27f2ac9c8 to your computer and use it in GitHub Desktop.
Verify if a program is installed
$scomInstallCheck = Get-WmiObject -Class Win32_Product -ErrorAction Stop | `
? { $_.Name -eq "Microsoft Monitoring Agent" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment