Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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