Get a list of all email addresses

Using PS, how can I get a list of ALL email addresses on our Exchange Server(2010) remotely?

  • Alternatively, enter an email address to see if it exists on Exchange. If it doesn't, display a popup that it doesn't exist. If it does exist, display the mailbox & AD account.