You may have seen recently how to identify who’s connected to your Operations Manager 2007 R2 management group. This PowerShell snippet will do the same for System Center 2012 Operations Manager.
In short, this PowerShell snippet (which is well-commented), performs the following actions:
- connects to the management group
- retrieves the EnterpriseManagement.ManagementGroup object
- using the .GetConnectedUserNames() method, retrieves a list of currently connected users.
#Connect to the SCOM 2012 Management Group
$ScomServer = 'mmsscom01'
$MGConn = New-SCOMManagementGroupConnection -ComputerName $ScomServer
#Retrieve the Microsoft.EnterpriseManagement.ManagementGroup object for the current management group.
$MG = get-scommanagementgroup
#Retrieve the list of connected users
In addition to the master list of System Center PowerShell, here are some Operations Manager 2012 PowerShell resources you may find useful.