To see user’s AD group membership using the command line:
- Open the command prompt by navigating to Start → Run (or pressing Win + R) and entering "cmd".
- Type the following command in the command line, specifying the user account you want to find group membership for:
net user username
- At the end of the resulting report, you will find a list of the local groups and global groups that the user belongs to:
To list members of AD group using the command line:
- Open the command prompt by navigating to Start → Run (or pressing Win + R) and entering "cmd".
- Enter the following command, specifying the required group name:
net localgroup groupname
- At the end of the resulting report, you will find a list of the members of the group:
NET commands also work if you need to check local users and group membership in Windows 10.
To see which groups a particular user belongs to:
- Run Netwrix Auditor → Navigate to "Reports" → Click “Predefined” → Expand the "Active Directory" section → Go to "Active Directory - State-in-Time" → Select "User Accounts - Group Membership"→ Click “View."
- Specify “Enabled” in the “Status” field and type “user” in the “Member Type” field -> Click “View Report.”
To check AD group members:
- Run Netwrix Auditor → Navigate to “Reports” → Click “Predefined” → Expand the “Active Directory” section → Go to “Active Directory – State-in-Time” → Select “Group Members” → Click “View”.
- Set up the following filters:
- Status: Enabled
- Member Type: User
- Group path: The group path. You can specify the partial path to a particular group, using % as the wildcard character, or leave the wildcard to see a report for all groups.
- Click “View Report”.