How can I find out which user groups my domain user belongs to?

63

16

Running Windows 7 on my work PC, how can I check which groups I am a part of on the domain from my PC? I know how to check the local groups using MMC (Microsoft Management Console), just not the groups managed on the domain. I do not have remote access to our domain controller to check this, as we use a proprietary admin tool to access the server and licensing prevents additional installation.

Bender the Greatest

Posted 2013-06-25T14:16:54.517

Reputation: 781

Question was closed 2013-06-29T17:00:37.273

Is it an Active Directory domain, or something else? – Taegost – 2013-06-25T14:22:24.600

Active Directory, sorry – Bender the Greatest – 2013-06-25T14:25:07.020

Answers

112

Open a command prompt.

Type: net user <userName> /domain

It will list both Local and Global groups that user belongs to.

If you want it to only list the groups, you can use Find to filter it:

net user <userName> /domain | find "Group"

This has worked in all (NT) version of Windows since at least NT 4.

On Vista/2008 and above, you can also use WhoAmI /Groups to get a verbose list of group memberships (including their UIDs, etc.) for the current user.

Ƭᴇcʜιᴇ007

Posted 2013-06-25T14:16:54.517

Reputation: 103 763

this post is also useful http://serverfault.com/questions/49405/command-line-to-list-users-in-a-windows-active-directory-group shows how to get all the users in a group

– JonnyRaa – 2014-12-02T13:05:23.567

2

This is not helpful, because the group names are truncated to 21 characters. A better solution, which also does not require extra software, is here http://serverfault.com/a/594724/66588

– t0r0X – 2015-03-16T19:51:41.423

1@Vistor Feel free to add an additional answer instead of claiming the existing answer is not helpful (18 people disagree ;) ) and just posting a link. The more answers the better. :) – Ƭᴇcʜιᴇ007 – 2015-03-16T19:54:01.340

Also the group list can span several lines but the find command only shows the first. – Zitrax – 2016-01-18T15:07:48.290

nice. didn't know about this. FWIW it also works on 2008 R2 (not just Win7 as question is tagged with) – James – 2013-06-25T14:25:20.953

12this worked, i also just found out that WHOAMI /GROUPS also shows more verbose information about the groups you are a member of as well – Bender the Greatest – 2013-06-25T14:27:05.060

2I forgot about WHOAMI /groups, Old habits I guess, the Net User command has been around since NT 4 days. :) I'll add that to my answer to round it out. – Ƭᴇcʜιᴇ007 – 2013-06-25T14:39:52.363