Wednesday, May 28, 2014

System Center Operations Manager 2012 Daily Alert Management


    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.

1 comment:

  1. The Best Casino Games in Washington - MapYRO
    Best casino games 춘천 출장샵 in Washington · Slots.lv Casino offers 통영 출장안마 more 당진 출장샵 than 100 casino table games to choose from and a variety 서산 출장마사지 of video slots, video poker, 동해 출장마사지 and bingo to

    ReplyDelete