How extract email from active directory from built in queries?

Hi.  Is there a way I can extract users email using the built in Queries?  Thanks in advance.
Who is Participating?
Guy LidbetterConnect With a Mentor Commented:
Hi Victor,

Your question title says from active directory. If you mean the assigned email address you can use powershell on a DC or pc with admin tools installed.

Import-module activedirectory
Get-ADUser -resultsize Unlimited -properties mail | select Name, mail

Will SzymkowskiSenior Solution ArchitectCommented:
You can use powershell to accomplish this. What version of Exchange are you running? For Exchange 2007 use Export-mailbox cmdlet. For Exchange 2010/2013 use New-MailboxExportRequest cmdlet.

If you need assistance let me know and I can help.

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.