Exchange 2007 list of all smtp addresses

bains1000
bains1000 used Ask the Experts™
on
Hi

Is there a simple way of pulling a report of all the email addresses in use on an exchange 2007, we have a few accounts with multiple alias and need a quick way to list them all.

thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
JamesSenior Cloud Infrastructure Engineer

Commented:
From Exchange Command Shell

get-mailbox | select displayname,primarysmtpaddress > C:\whatever.txt
Senior Cloud Infrastructure Engineer
Commented:
Actually I suppose if you just wanted the addresses this would probably work.

Get-Mailbox | select -expand EmailAddresses | %{$_.SmtpAddress}

Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Jbond i tried your first post "get-mailbox | select displayname,primarysmtpaddress > C:\whatever.txt"
this format is great however it is only giving me the primary smtp address,  is there a way to adopt this to give me any alias as well?

thanks
JamesSenior Cloud Infrastructure Engineer

Commented:
If you try my second one this should work.
JamesSenior Cloud Infrastructure Engineer

Commented:
In my second comment this will provide you with all the smtp alias addresses.

Author

Commented:
Thanks worked a treat

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial