Avatar of Dermalogica
Dermalogica
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Exchange 2007 command to export email addresses

Does anyone have the Exchange 2007 powershell cmdlet that would export a list of all the users who have an email address in my organisation to a text file? I'd like it in the format

User     Email Address

Adam    adam@domain.co.uk
John     john@domain.co.uk  

I imagine it would start with "Get-Mailbox"... I've done commands that list mailboxe sizes but after Googling i can't find anything that would give me all the email addresses.

Many Thanks in advance,

Adam
Email ServersExchange

Avatar of undefined
Last Comment
Akhater

8/22/2022 - Mon
Akhater

get-mailbox | fl name,primarysmtpaddress


ASKER CERTIFIED SOLUTION
Akhater

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dermalogica

ASKER
Thank you, easier than i thought it would be! i changed it slightly from fl to format-table to output it in an easier fromat for me, but it's done the job! :)
Akhater

glad to know it helped
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