Error: “You cannot migrate mailbox off of Office365 while the mailbox has a connected account enabled.”

Scenario:  When offboarding a mailbox, you receive the following error:

“You cannot migrate mailbox  off of Office365 while the mailbox has a connected account enabled.”

Solution: You will have to remove the subscription before offboarding the mailbox.

First,  check the subscription to make sure its not anything that’s going to affect the user:

get-subscription –mailbox stevem| FL IncomingServer, SubscriptionType, *Status*, LastSuccessfulSync,IncomingUserName

If it all looks good, run the following to remove the subscriptions:

get-subscription -mailbox stevem | Remove-subscription

Archives