Solved

How to export user names from Active Directory groups?

Posted on 2010-08-20
6
857 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
6 Comments
 
LVL 8

Expert Comment

by:ragnarok89
Comment Utility
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
Comment Utility
dsget group "cn=group1,ou=ou1,dc=domain1,dc=com" -members | dsget user -full >yourfile.txt
0
 
LVL 7

Expert Comment

by:Waseems
Comment Utility
any feedback, can you close the question please
0
 
LVL 14

Expert Comment

by:canali
Comment Utility

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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This is my first article in EE and english is not my mother tongue so any comments you have or any corrections you would like to make, please feel free to speak up :) For those of you working with AD, you already are very familiar with the classi…
I'm sure that every Windows systems administrator has written, or at least used, a batch or VBS login script at some point in their career, whether it is to map network drives, install printers, or set some user preferences.  No more! With Window…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now