-
Here's a quick little Operations Manager powershell command that I use pretty much on a daily basis.
Get-SCOMAlert | Where-Object { ($_.ismonitoralert -like "False") -and ($_.lastmodified -le (get-date).addhours(-24)) -and $_.resolutionstate -ne 255 } | Set-SCOMAlert -ResolutionState 255
So, this basically closes all the open alerts created by alert rules that are older than 24 hours. Alerts created by alert monitors will close themselves once the condition that triggered them is resolved.
No comments:
Post a Comment