Listing the Groups for a User or Users of a Group in a Windows Domain

Had to look this one up today, as I can’t remember the last time I needed this, but finding out what users are part of a Windows group, or what groups a user belongs to comes in pretty handy now and then. Here is the command prompt code:


To list of groups for which a user belongs:

        net user jsmith /domain

To list of members of a group:

        net group some-user-group /domain


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.