Wednesday, June 25, 2014

Connected Users Dashboard

Below you find a script to show all connected SDK users in your SCOM 2012 R2 UR2 management group.
You can just paste the code into a PowerShell Grid Widget. The dashboard will after that look that way:
image
There is no additional configuration necessary since the script takes the management server from the registry.

Update: I added some lines to get the display name for the user from AD. In case that the AD PowerShell module is not installed, the script shows the following text in the Note column: "Please install RSAT Feature (http://bit.ly/UIX5gT)". You can easily replace it by any other text if you don’t want that to be shown. Please find more information after the script.

Update: You can download the script from the TechNet gallery as well: https://gallery.technet.microsoft.com/PSGW-Connected-Users-20817b14

<removed script and moved to TechNet gallery>

You can easily install the AD PowerShell module if you run the Operations Console on a server OS by entering the following command in an elevated PowerShell:
Add-WindowsFeature RSAT-AD-PowerShell
For Windows 7:
http://www.microsoft.com/en-us/download/details.aspx?id=7887
For Windows 8:
http://www.microsoft.com/en-us/download/details.aspx?id=28972
For Windows 8.1:
http://www.microsoft.com/en-us/download/details.aspx?id=39296
Thanks to The PowerShell Guy for his PowerShell hints.
All information is provided "as is" without any warranty! Try in lab before. Handle with care in production.

All information is provided "as is" without any warranty! Try in lab before. Handle with care in production.

0 Comments:

Post a Comment