5 Replies Latest reply: May 8, 2013 9:36 AM by bsti@plex.com RSS

how to - list groups for domainuser

JSHACHER11 Cyclist
Currently Being Moderated

I am trying to list all groups a domainuser is in - for example:

 

command whitehouse\obama

 

output:

 

whitehouse\obama is in groups sd_group,backup operators

 

I saw C:\PS>Get-NaDomainUser - but it is asking to input a group

I've also seen this: C:\PS>Get-NaGroup | Get-NaDomainUser - this just lists all domain users

 

 

Cheers

  • Re: how to - list groups for domainuser
    bondbhola Sprinter
    Currently Being Moderated

    Use the below command, Please check all other group also.

     

     

    useradmin domainuser list -g Administrators

    List of SIDS in Administrators

    S-1-5-21-829997826-372528177-1256645902-500

    S-1-5-21-337916495-1329879564-1005799528-512

    S-1-5-21-337916495-1329879564-1005799528-118262

    S-1-5-21-337916495-1329879564-1005799528-118263

    S-1-5-21-337916495-1329879564-1005799528-118943

    S-1-5-21-337916495-1329879564-1005799528-118335

    S-1-5-21-829997826-372528177-1256645902-131074

    S-1-5-21-829997826-372528177-1256645902-131077

    S-1-5-21-194394294-102398579-185099702-40066

    S-1-5-21-829997826-372528177-1256645902-131075

    S-1-5-21-829997826-372528177-1256645902-131081

  • Re: how to - list groups for domainuser
    bsti@plex.com Certified Cyclist
    Currently Being Moderated

    Try this:

     

    Get-NaGroup | ? { Get-NaDomainUser -Group $_ | ? { $_.Name -imatch "myusername" } }

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points