Hi!
I have created a powershell monitor that enters info into an alert. Is it possible to make the script update the alert even though the alerts state has not changed?
example code, not my alert but same concept. When alert is triggered one site is not running, one hour later two sites is not running. How do I get the updated information into the alert?
$alert = Get-IISSite | where-object {$_.state -ne "Started"} if ($alert.count -gt 0) { $messagetext = "$alert.name , $alert.state" $state = "Error" }else { $state = "OK" }