If the check returns false (no disconnected mailbox found) then create a new mailbox. What we would like to do is to have a business rule that executes after the user has been re-provisioned which checks to see if the account's mailbox exists in a disconnected state and if it does then A) re-connect it to the account being re-provisioned or if this is not possible B) display a warning that the account may have a mailbox in a disconnected state and may need to be reconnected manually.
REMOVE DISCONNECTED MAILBOXES EXCHANGE 2010 HOW TO
If the property returns True then a mailbox gets created via a business rule that executes after the user has been re-provisioned. This is a quick how to which will enable you to remove any disconnected mailboxes from exchange 2010, since the purge mailbox feature is no longer available. Our process uses a custom boolean property within the web-front end of ADAXES to indicate whether or not the to-be-re-provisioned account should have a mailbox. clean-mailboxdatabase 'Mailbox Store Name'. Perform the below command in order to run the Clean task on your exchange mailbox store, you need to do this via the Exchange Command Powershell. These users inevitably request their old mailbox data and it becomes a cumbersome process to delete the newly created mailbox and find/reconnect the old one. Step 1: Run a clean on your mailbox store. We retain disabled mailboxes for 180 days and what ends up happening is that our automated process re-provisions this previously 'terminated' employee and creates a new mailbox for the user. To get this information you should use the Exchange Management Shell. This process works great with the exception of the account's mailbox. Delete a disconnected mailbox from exchange 2010 easy command in the Exchange Management Shell clean-mailboxdatabase Mailbox Database 1166050598 However you should get all information about the mailbox of the deleted user and disconnected mailbox.
Long story but the short of it is, occasionally users come back to the company and we have an automated process that re-enables / re-provisions their account (moves to certain OUs, adds to groups, creates home drive, etc). Currently our organization does not delete Active Directory accounts when users leave the company.