1,078 questions
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 |