exchange, active directory

I am looking for a script to run on my DC to retrieve 600 users their email address like pramod@domian.com

is there any script I can use
pramod1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Klavs RDeveloper, owner of AlbusBitCommented:
You can use PowerShell script:
Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title | select DisplayName, EmailAddress, Title | Export-CSV "C:\Email_Addresses.csv"

Open in new window

Or free AD reporting tool - AD FastReporter.
0
FOXActive Directory/Exchange EngineerCommented:
Get-Aduser -filter * -properties * | select DisplayName, EmailAddress | Sort DisplayName | out-file 'c:\temp\emailaddresses.csv'
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
pramod1Author Commented:
I have this file , will above script work, what should I put in csv file
Copy-of-List.xlsx
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.

FOXActive Directory/Exchange EngineerCommented:
When you run my command it will output the displayname and the emailaddress to a csv. file which  you can open  in excel or notepad.  The choice is yours.  Go for it.  Edit the out-file location to where you want the .csv file to save.
0
pramod1Author Commented:
what about the excel file I got, I have to pull the address
0
FOXActive Directory/Exchange EngineerCommented:
Your initial request was to pull the email addresses for 600 users, correct?
0
pramod1Author Commented:
with the excel file I got
0
pramod1Author Commented:
where I will use
0
pramod1Author Commented:
I want only for 600 users, I have attached 2 names as of now
0
pramod1Author Commented:
in excel sheet, how should I use them in script which you mentioned above
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
Exchange

From novice to tech pro — start learning today.