Link to home
Create AccountLog in
Avatar of Dermalogica
DermalogicaFlag 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
Avatar of Akhater
Akhater
Flag of Lebanon image

get-mailbox | fl name,primarysmtpaddress


ASKER CERTIFIED SOLUTION
Avatar of Akhater
Akhater
Flag of Lebanon image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of 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! :)
glad to know it helped