Find and export disconnected mailboxes

In Exchange 2010/2013 you might find yourself in a position to need to export disconnected mailboxes. Say if someone leaves and their account is deleted, leaving the mailbox in a ‘Disabled’ state for the retention period. First thing you need to do is find the mailbox as it won’t appear when it’s disconnected. Get-MailboxStatistics will do this.