Resolve all Alerts that are created by a ruleget-alert -criteria ‘ResolutionState = ”0”’ | where-object {($_.IsMonitorAlert -eq $False)}| resolve-alert -comment “CLOSE ALL Alerts created by Rules” | out-null

Resolve all Alerts that are created by a monitorget-alert -criteria ‘ResolutionState = ”0”’ | where-object {($_.IsMonitorAlert -eq $True)}| resolve-alert -comment “CLOSE ALL Alerts created by Monitors” | out-null