14 Kasım 2015 Cumartesi

PowerShell Script to Update Alert Resolution

I use this to regenerate reminder alerts for certain alerts. This script will trigger for alerts with “Disk” in the name.
$MS = “yourRMS.yourCO.com”
$connect = New-SCOMManagementGroupConnection –ComputerName $MS
Get-SCOMAlert -criteria ‘ResolutionState = “0” AND Severity = “2”‘ |
Where-Object {$_.Name -like “*disk*” -and $_.IsMonitorAlert -eq $true} |
Set-SCOMAlert -ResolutionState 0 |
out-null

Hiç yorum yok: