Link: http://social.technet.microsoft.com/Forums/exchange/en-US/7bf9469a-90e2-43ef-9930-b4a1efab968f/getmailpublicfolders-list-all-smtp-addresses?forum=exchangesvradminlegacy

 

Get-Mailpublicfolder | fl alias,emailaddresses

Get-PublicFolder -Recurse | Get-MailPublicFolder | Select Displayname, Emailaddresses > c:\users\myusername\PFrecursesmtp.txt
Get-recipient -resultsize unlimited | select Name -expand emailaddresses | Select SmtpAddress