Removal of stubborn In-Active mailboxes

Stuck with the removal of an inactive mailbox even though it doesn’t have in place Hold or Litigation Hold enabled? I faced similar issues at one of my customers where I was trying to remove an In-Active mailbox.

Firstly I checked if it has any holds in place.

Get-Mailbox [email protected]|fl compl*,delay*,inplace*,litig*
As per the result I could see there is no hold in place

But when I was trying to force remove (works all the time) using the below command I was hit by an error stating I have Organization Policies applied which was the culprit.

Get-Mailbox [email protected] -InactiveMailboxOnly |Remove-Mailbox -PermanentlyDelete -Force

To exclude the mailbox from all organization policies I had to run the below command and the mailbox got immediately removed

Set-Mailbox [email protected] -ExcludeFromOrgHolds -InactiveMailbox

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Proudly powered by WordPress | Theme: Code Blog by Crimson Themes.