Exporting All SCOM Alerts Created

Anonymous
2023-06-29T15:59:37.51+00:00

Dear,

I'm trying to export all SCOM alerts to a log file created by our environment. I can't seem to find a command or manual on how to export all the alerts at once. Is there a way to accomplish this task?

Microsoft System Center | Other
0 comments No comments
{count} votes

Accepted answer
  1. XinGuo-MSFT 22,231 Reputation points
    2023-06-30T02:03:44.18+00:00

    Hi,

    Retrieve all the SCOM alerts within the last day (highest priority first)

    $Date = (Get-Date).AddDays(-1)
    
    (Get-SCOMAlert -Criteria 'ResolutionState = "0"' | Where-Object {$_.LastModified -gt $Date }) | Sort-Object Priority -Descending
    
    
    Resolution States Serverity Values for Alerts
    0 = New 0 = Informational
    255 = Closed 1 = Warning
    2 = Critical
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.