locked
Get currently logged users RRS feed

  • Question

  • Hi there

    How can I get currently logged through console users?

     

    Regards,

    kpaRU

    Wednesday, August 31, 2011 7:53 AM

Answers

  • Hey

    Or if you want to do it with powershell try this (this example works on the SM Server but you can also make it work somewhere else with some modifications):

    Add-Type -path 'C:\Program Files\Microsoft System Center\Service Manager 2010\SDK Binaries\Microsoft.EnterpriseManagement.Core.dll'
    $NS = "Microsoft.EnterpriseManagement"
    $EMGType = "$NS.EnterpriseManagementGroup"
    $EMG = new-object $EMGType localhost
    $EMG.GetConnectedUsernames()

    regards
    Marcel


    SCSMfaq // Blog --> http://blog.scsmfaq.ch // Twitter --> #scsmfaq // Business --> http://www.itnetx.ch
    • Marked as answer by kpaRU Wednesday, August 31, 2011 10:04 AM
    Wednesday, August 31, 2011 9:29 AM
  • Maybe this blog post from Travis helps:

    Getting a List of Connected Users


    Andreas Baumgarten | H&D International Group
    • Marked as answer by kpaRU Wednesday, August 31, 2011 10:04 AM
    Wednesday, August 31, 2011 8:30 AM

All replies

  • Maybe this blog post from Travis helps:

    Getting a List of Connected Users


    Andreas Baumgarten | H&D International Group
    • Marked as answer by kpaRU Wednesday, August 31, 2011 10:04 AM
    Wednesday, August 31, 2011 8:30 AM
  • Hey

    Or if you want to do it with powershell try this (this example works on the SM Server but you can also make it work somewhere else with some modifications):

    Add-Type -path 'C:\Program Files\Microsoft System Center\Service Manager 2010\SDK Binaries\Microsoft.EnterpriseManagement.Core.dll'
    $NS = "Microsoft.EnterpriseManagement"
    $EMGType = "$NS.EnterpriseManagementGroup"
    $EMG = new-object $EMGType localhost
    $EMG.GetConnectedUsernames()

    regards
    Marcel


    SCSMfaq // Blog --> http://blog.scsmfaq.ch // Twitter --> #scsmfaq // Business --> http://www.itnetx.ch
    • Marked as answer by kpaRU Wednesday, August 31, 2011 10:04 AM
    Wednesday, August 31, 2011 9:29 AM