Solved

How to export user names from Active Directory groups?

Posted on 2010-08-20
6
862 Views
Last Modified: 2012-05-10
I have a request that requires me to show a list of all the user names in a specific group, and I am not sure which way is easier. Can someone place point me in the right direction. Thanks.
0
Comment
Question by:c000410
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 8

Expert Comment

by:ragnarok89
ID: 33488803
In AD, highlight the OU that contains the users you want to export.

Click Actions > Export
Select the location and name of the file to create.

That's it!

Al
0
 
LVL 7

Accepted Solution

by:
Waseems earned 50 total points
ID: 33488914
dsget group "cn=group1,ou=ou1,dc=domain1,dc=com" -members | dsget user -full >yourfile.txt
0
 
LVL 7

Expert Comment

by:Waseems
ID: 34327351
any feedback, can you close the question please
0
 
LVL 14

Expert Comment

by:canali
ID: 34327559

Need -expand  (For the -members parameter, displays the recursively expanded list of members of the group)
dsget group "cn=ALLbadBoys,ou=MyOU,dc=mydomain,dc=com" -members  -expand

http://technet.microsoft.com/en-us/library/cc731202(WS.10).aspx

Bye Gastone Canali
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 34689898
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A hard and fast method for reducing Active Directory Administrators members.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question