We have an application installed onto 2 servers, this doesn’t run as a Windows Service and/or process, however we need to ensure the application isn’t uninstalled (maliciously or accidentally).
I am toying around with using the “Get-wmiObject Win32_product” cmdlet but would like to know how I can leverage the SquaredUp PowerShell MP to alert if the powershell cmdlet returns a NULL value? Is this at all possible?
Thanks for that, I have now got the PowerShell monitoring working with your help, see below for working script. However I am struggling to get the “MessageText” section input into the Alert Description, I have added the following into Alert Description but it doesnt seem to work:
$Data/Context/Property[@Name=‘MessageText’]$
SCOM management server alerts at the same time with the below:
Failed to replace parameter while creating the alert for monitor state change.