Get a list of all email addresses

if you are inside the network, just use a implicit PSRemote session to your Exchange server, which proxies the Exchange cmdlets to your local host for the session, then just run the normal Exchange cmdlets to get what you are after. Get-Mailbox for example.