techthoughts2
7/7/2017 - 10:06 PM

Verify if a program is installed

Verify if a program is installed

$scomInstallCheck = Get-WmiObject -Class Win32_Product -ErrorAction Stop | `
			? { $_.Name -eq "Microsoft Monitoring Agent" }