Solved

Exporting from Active Directory

Posted on 2007-11-29
8
415 Views
Last Modified: 2010-04-21
I need to provide the names of employees listed in our "everyone" distribution group in Active Directory.  Is there a way to export these names to a csv or excel file?
0
Comment
Question by:monicamd
[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
  • 5
  • 2
8 Comments
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 500 total points
ID: 20377319
Assuming that the samAccountName of the group is 'All-Users', run the following from the command-line:

dsquery group -samid Everyone | dsget group -member > members.txt
0
 

Author Comment

by:monicamd
ID: 20377399
When I type in that command, its says '-member' is an unknown parameter.  When I changed it to -members, it says 'target object for this command' is missing.
0
 
LVL 30

Expert Comment

by:LauraEHunterMVP
ID: 20377583
Apologies for the typo, it is -members - the latter error likely means that you have entered an incorrect samaccountname.  Run only the dsquery portion of the statement (the part before the '|') and see if it returns successfully.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:monicamd
ID: 20377621
when I just run dsquery group -samid Everyone, nothing happens.  How do I find the samaccountname?
0
 
LVL 3

Expert Comment

by:l84work
ID: 20380260
That's because "everyone" is not an AD group.  Just like the "authenticated users", it's a placeholder.  dsquery can't see it.

Are you trying to export all of the users in domain?  just replace "everyone" with "Domain Users".

Or are you talking about exporting the GAL from exchange?  That should the same as 'everyone'.
http://support.microsoft.com/kb/149447/en-us
0
 

Author Comment

by:monicamd
ID: 20382483
Actually "everyone" is a distribution list/group in AD that contains about 200 members - most of our domain users, but not everyone.  Is there a way to export the members of a distribution list/group?
0
 

Author Comment

by:monicamd
ID: 21070743
None of these solutions worked and the problem is no longer relevant.  Please close this question.

Thank youj.
0
 

Author Closing Comment

by:monicamd
ID: 31437676
This didn't work.  It's not longer relevant to me.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In-place Upgrading Dirsync to Azure AD Connect
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

735 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