• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 45
  • Last Modified:

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
0
pramod1
Asked:
pramod1
  • 6
  • 3
2 Solutions
 
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
 
pramod1Author Commented:
I have this file , will above script work, what should I put in csv file
Copy-of-List.xlsx
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

Join & Write a Comment

Featured Post

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.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now