Showing Overrides with PowerShell (3.0)

Have you ever tried to quickly find which overrides are set for a certain Monitor or Rule?

This command below will give you a list of monitors, depending on an initial Display Name filter to narrow it down, from which you can pick one or more. Then, it will fetch all overrides for you and show it in this nice GUI way than only PowerShell 3.0 can give you:

 

get-scommonitor | where {$_.DisplayName -match “Logical Disk”} | sort-object DisplayName | Out-GridView -passthru | Get-SCOMOverride | select Parameter, Value, Name | out-gridview

 

You should first see a prompt with the monitor list:

image

You can then select, click OK and see the overrides:

image

Works for rules as well:

get-scomrule | where {$_.DisplayName -match “AD Replication”} | sort-object DisplayName | Out-GridView -passthru | Get-SCOMOverride | select Parameter, Value, Name | out-gridview

 

Quick and dirty. Well, not that dirty…Smile