Solved

How to export user names from Active Directory groups?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…
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…

895 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

17 Experts available now in Live!

Get 1:1 Help Now