Solved

How to export user names from Active Directory groups?

Posted on 2010-08-20
6
859 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

777 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