Exporting from Active Directory

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?
monicamdAsked:
Who is Participating?
 
LauraEHunterMVPCommented:
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
 
monicamdAuthor Commented:
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
 
LauraEHunterMVPCommented:
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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
monicamdAuthor Commented:
when I just run dsquery group -samid Everyone, nothing happens.  How do I find the samaccountname?
0
 
l84workCommented:
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
 
monicamdAuthor Commented:
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
 
monicamdAuthor Commented:
None of these solutions worked and the problem is no longer relevant.  Please close this question.

Thank youj.
0
 
monicamdAuthor Commented:
This didn't work.  It's not longer relevant to me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.