Tag Archives: powershell one liners

Change the SCOM 2012 Database Grooming Settings using PowerShell

If you want to use PowerShell to change the Database Grooming settings in SCOM 2012, you can use the following: (just set the value to how many days you want to keep the data before grooming it out of the … Continue reading

Posted in Powershell for SCOM, SCOM 2012 SP1 | Tagged , , , , , , , , , , , | Leave a comment

SCOM 2012 Powershell One Liners to resolve alerts

#Resolve informational alerts that are created by a rule get-scomalert -criteria ‘ResolutionState = “0” AND Severity = “0”’ | where-object {($_.IsMonitorAlert -eq $False)}| set-scomalert -ResolutionState 255 | out-null #Resolve information alerts that are created by a monitor get-scomalert -criteria ‘ResolutionState … Continue reading

Posted in SCOM 2012 SP1 | Tagged , , , , , , , , | Leave a comment