Solved

Query Email addresses in AD

Posted on 2009-05-20
6
840 Views
Last Modified: 2012-05-07
I have been given a list of email address in an excel sheet. The sheet includes first, last name and email address.

Part One: Can someone help me to query AD? I want to use the excel sheet to query and see which if any of these email addresses already exist in AD.

Part Two: Can I import an excel sheet of email addresses into an AD DL?
How can this be done?
0
Comment
Question by:Y2KBDS
[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
  • 4
  • 2
6 Comments
 
LVL 1

Expert Comment

by:preshomes
ID: 24432805
What email system are you using?  If using Exchange 2007 you can use the Exchange Mgmt Shell to query the users with email addresses.  I use this command to get a list of users, mailbox size, and last login time.  This will also export this list to a .csv file on the root of C.

get-mailbox | get-mailboxstatistics | select-object DisplayName,TotalItemSize,StorageLimitStatus,LastLogonTime | Export-Csv -NoTypeInformation c:\LogonStats.csv
0
 

Author Comment

by:Y2KBDS
ID: 24432873
Sorry, I am using Exchange 2003.
0
 
LVL 1

Accepted Solution

by:
preshomes earned 500 total points
ID: 24432982
"Open the Acive Directory Users and Computers Management Console
"Right Click on the domain > Select Find
"Select Custom Search in the Find field
"Select the Advanced tab

Type this
proxyAddresses=smtp:*

After it finds the results  - Select View > Choose Columns and Select Email Address
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:preshomes
ID: 24433023
Also...take a look at the site below.  It contains a vb script that does the same thing. I just ran it on my system and it returned great results.

http://www.suneja.com/blog/2005/09/how-to-export-all-email-addresses-from.html
0
 
LVL 1

Expert Comment

by:preshomes
ID: 24433488
When you go to the site mentioned above be sure to notice that it saves a file in the root of C:
c:\proxyaddresses.txt

This file will list all of your email addresses.

Hope this helps
0
 

Author Comment

by:Y2KBDS
ID: 24434165
I did the first option and then ran a compare in excel.
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

This article runs through the process of deploying a single EXE application selectively to a group of user.
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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