Have you ever wanted to simply click a server object and see all of the effective rule and monitor configuration settings in one view? Now you can.
NOTES:
This dashboard isn't perfect. I've seen some weird behavior on occasion. Sometimes the top right widget will update with content from other widgets that exist in other views in other folders. Perhaps the Powershell runspace is sharing scope with other dashboards?. Let me know if you find ways to improve it.
If you select ONLY one computer object (top left), expect to see the entire list of configurations for ALL contained subitems appear in the bottom widget.
This may take a minute to enumerate so be patient. If you select more than one computer you will only see output for the first computer, not multiple computers. This is by design.
Select a subitem (top right) and ONLY the configuration for THAT item will appear in the bottom widget.
2015.1.14: Updated script (EffectiveMonitoringConfiguration) to make Column names unique
Comments
Anonymous
July 26, 2014
Hi Tyson,
This Rick from UC Davis from the other day, looks like I found your blog. This is a very great dashboard it really going to help our admins. To note I manually created dashboard with your code. The bottom cell for "Effective Monitoring Configuration" gave and error. It looks like the lines 17, 20 23 and 30 have a incorrect terminator. Below is the correction I used for those lines which got it to work.
Thanks!
Rick
########################################################################################################
Function LogIt ([int]$EventID, [int]$Type=2, [string]$Message="No message specified." , [int]$proceed) {
$TimeStamp = (get-date -format "yyyyMMddHHmmssfff")
$output = "@
Message: $Message
@"
If ($proceed -gt 1) {
$output += "@
ThisScript: EffectiveMonitoringConfiguration.ps1
TimeStamp: $TimeStamp
Any Errors: $error
@"
}
Anonymous
July 26, 2014
Hi Rick,
. Glad you like it. The error you experienced is most likely the result of a copy/paste anomaly. The "here" string terminator
"@
must be completely left justified in order to work; no preceding spaces, tabs or otherwise. If you open the MP and find that code section you may not be able to see what I mean because the dashboard coded sections are stored / formatted kindof wonky.
Anonymous
January 13, 2015
Hi Paul!
Thanks for the dashboard!
I see that you have an error in your script for the lower window:
$dataObject["$Column"] = "$($arrRow[$c])"
The dataObject must be an unique name. At the end of the csv-data, the headers "Parameter Name|Default Value|Effective Value" repeats itself and therefore overwrites the data into the same columns and you only get the data from the last column.
I easily and dirty solved it by adding the $c counter to the column name:
$dataObject["$Column ($c)"] = "$($arrRow[$c])"
We found this out because we wanted the info in the last columns (the override data) and we saw that maaaaany columns was missing.
Anonymous
January 14, 2015
Excellent! Thanks, Christian! I've updated the script and code sample snippet above.
Anonymous
October 13, 2015
Great idea!!
Just to complement and make things a bit better try using Powershell Grid Widget (Filtered) instead of just Powershell Grid Widget; you will enjoy the search filter...
Powershell Grid Widget (Filtered) is provided by gallery.technet.microsoft.com/Powershell-Grid-Widget-919dc3d6.
Anonymous
January 18, 2017
Hi GuysSince the Powershell widget doesnt come standard with SCOM how do i add, I have been trying this process of installing the KB file and Management Pack that i found recommended by Microsoft.