Members of an AD group

  • I'm trying to use net group "ABC_AD_group" /domain through command line to list the members of an AD group but I'm not getting the results. How do I list the members of an AD group?

  • If you have sysadmin access to the SQL Server database; you can simply issue the below command to check all the members of an AD group:

    EXEC xp_logininfo 'ABC_AD_group' , 'members'

    If you wanted to check via the Window CMD command only. Then use below:

    NET GROUP "group name" /DOMAIN

    to check similar for a particular user, then use below:

    NET USER "username" /DOMAIN

    Thank,

    AB

  • sql.AB (6/18/2012)


    If you have sysadmin access to the SQL Server database; you can simply issue the below command to check all the members of an AD group:

    EXEC xp_logininfo 'ABC_AD_group' , 'members'

    If you wanted to check via the Window CMD command only. Then use below:

    NET GROUP "group name" /DOMAIN

    to check similar for a particular user, then use below:

    NET USER "username" /DOMAIN

    Thank,

    AB

    Thanks a lot. It's exactly what I needed.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply