Avatar of whenz
whenz
 asked on

Powershell Script to export all E-Mail Addresses from Exchange 2010

I am looking for a Powershell script which performs the following task:

export all e-mail addresses and address aliases from usermailboxes, distribution lists, public folders.

the format of the output should be like this:

[export.txt]
andy@mycompany.msft, andy.c@mycompany.msft, andy.coombs@mycompany.msft
sandy@mycompany.msft, sandy.b@mycompany.msft, sandy.boombs@mycompany.msft
randy@mycompany.msft, randy.d@mycompany.msft, randy.doombs@mycompany.msft

I tried a couple of commands, but no success yet .....
PowershellExchangeActive Directory

Avatar of undefined
Last Comment
SubSun

8/22/2022 - Mon
Manpreet SIngh Khatra

CSVDE can do what you want

CSVDE -F "C:\EnvironmentDump.csv"

Shell Can only be for one data at a time or create a PS1 with all commands

- Rancy
ASKER CERTIFIED SOLUTION
SubSun

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes