Dermalogica
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
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
get-mailbox | fl name,primarysmtpaddress
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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