OpsMgr 2012:See Who is Currently Connected to Your Management Group via PowerShell

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.

Enjoy!

Additional Resources

In addition to the master list of System Center PowerShell, here are some Operations Manager 2012 PowerShell resources you may find useful.

OpsMgr 2012: All my Java apps require manual discovery – where do I get BeanSpy and PowerShell install scripts?

OpsMgr 2012: Reset Unit Monitors in Bulk with PowerShell

OpsMgr 2012: Find Computers without the Active Directory Helper Object (OOMADS) with PowerShell

OpsMgr 2012: Disabling Rules and Monitors in Bulk in PowerShell

OpsMgr 2012: Group Maintenance Mode via PowerShell (the way it should be)

OpsMgr 2012: Running a Task in Bulk Using PowerShell

OpsMgr 2012: Automating Agent Discovery and Deployment with PowerShell [sample script]

OpsMgr 2012: Identifying Computers in Active Directory without an OpsMgr Agent Installed [sample script]

OpsMgr 2012 Quick Tip: Finding servers experiencing the most heartbeat failures with PowerShell

System Center Operations Manager 2012 “More that meets the eye” Part 2–PowerShell

http://blogs.technet.com/b/stefan_stranger/archive/2011/09/21/how-to-find-out-what-s-new-in-om12-for-powershell.aspx

Master Collection of System Center PowerShell Scripts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.