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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.