This post may be a little obscure but this command helped me out a lot today at work. I was asked to provide a list of all the mailboxes and their associated e-mail addresses that are on our Exchange 2007 Server.
To do this you simply need to open up the Exchange Management Shell and type in the following command:
Get-Mailbox | fl UserPrincipalName, PrimarySMTPAddress, EmailAddresses
You can then right click in the Management Shell window and click on ‘Select All’ and then press the ‘Enter’ key to copy the contents to your clipboard. From there you can do what ever you want with it.