Created
July 7, 2017 22:06
-
-
Save techthoughts2/761884d6a993c2d36c430fc27f2ac9c8 to your computer and use it in GitHub Desktop.
Verify if a program is installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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