23

This seems like it would be a simple question, but my Google skills have failed me.

When logged into a domain (as a domain user without any admin rights), how can I determine what groups my user account belongs to?

4 Answers4

23

You can also do it using the following:

gpresult

which will also show any GPO objects applied

Mike1980
  • 670
14

Ah - I managed to find a way to do this, from a command prompt:

net user {username} /domain

Which includes in its output a list of "global group memberships" corresponding to domain groups.

2

In more recent Windows versions you could use the whoami command:

whoami /groups
grawity
  • 501,077
aschipfl
  • 648
0

Here's what I use (since I have Gnu32 grep):

gpresult /R | grep "following security groups" -A5000

This will perform a "list group policy" command for the current user, then pipe the output through grep so that only the information about group membership is written out.