Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

Using the Get-SCOMAlert -Criteria Parameter

$
0
0

Hello,

The folllowing PowerShell command returns alerts which werenot resolved within 30 seconds:

Get-SCOMAlert | Where-Object {(($_.ResolutionState -ne 255) -or (($_.TimeResolved - $_.TimeRaised).Seconds -ge 30))}

How can I convert this using the Get-SCOMAlert’s much more efficient -Criteria parameter?

Thanks,


Larry


Viewing all articles
Browse latest Browse all 11941

Trending Articles