Print Logo

Retrieving Group Membership for Active Directory from the Command Line




<<  <   >  >>

To create a list of regular users in an Active Directory group using the CLI:

dsquery group domainroot -name groupname | dsget group -members | dsget user -fn -ln

  fn             ln

  John          Brown
  Bill          Smith

dsget succeeded





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art652.html

Copyright 1997-2012 NetAdminTools.com. Read our Terms of Use.