To recreate the mailboxes we need to initially remove the User Accounts in Active Directory. These will usually be found in CN=Users Unless they have been moved.
You will then need to run the following command from the correct installation media –
Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms
– This command will re-create the Active Directory objects required to re-create the mailboxes.
You will then need to re-enable the mailboxes using the below commands.
Enable-Mailbox –Arbitration –Identity “FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042”
Enable-Mailbox –Arbitration –Identity “SystemMailbox{1f05a927-8668-4003-adad-9b80758e86db}”
Enable-Mailbox –Arbitration –Identity “SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}”
Enable-Mailbox –Arbitration –Identity “SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}”