May 8, 201313 yr Moderators Is there a command line way to list all the users in a particular Active Directory group? Of course you can see who is in the group by going to Manage Computer --> Local User / Groups --> Groups and double clicking the group. Maybe you prefer using the command line method which is dsget group "CN=GroupName,DC=domain,DC=name,DC=com" -members OR try dsquery user -samid aa_kz2p4w | dsget user -memberof -expand OR try net group /domain
June 6, 201312 yr Moderators This worked awesome to find which users are a member of a group dsquery group -name "GG-NAO-HosangIT-ACS-Read-Write" -d nao.global.hosangit.com | dsget group -members This worked awesome to find what groups a user is a member of to validate they exist in AD dsquery user -samid svc_firemon | dsget user -display -memberof -expand
Create an account or sign in to comment