TIP: List members of a group

To list all members of a known group in human readable form (without the DN) from Active Directory:

dsget group "CN=MyGroup,OU=MyGroupOU,DC=domain,DC=com" -members | dsget user -fn -ln > MyGroup.txt

OR to just get their display name:

dsget group "CN=MyGroup,OU=MyGroupOU,DC=domain,DC=com" -members | dsget user -display > MyGroup.txt

-Lewis

This entry was posted in General. Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>