Link to home
Start Free TrialLog in
Avatar of carbonbase
carbonbaseFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Exchange Hybrid - Unable to remove Duplicate Mailbox

We have Exchange Hybrid setup as we are migrating from Exchange 2013 to Exchange Online.  

We have a user who has an on-prem mailbox and a cloud mailbox, I believe this has come about because the user had an Exchange Online license then later an on-prem mailbox was created for them.  We have now removed the users Exchange Online license as we want them to use their on-prem mailbox until we are ready to migrate their mailbox to the cloud.

Trying to remove the mailbox in O365 Powershell I get the following:

Remove-Mailbox -Identity John.Smith
'Windows LiveID Agent' : Unable to perform the save operation.  'John Smith' is not within a valid server write scope.

Disable-Mailbox -Identity 'John Smith'
Exchange can't disable the mailbox "John Smith" because it is on In-Place hold.

However, the mailbox doesn't appear to be on In-Place hold, as when I run the following command:

Get-Mailbox "John Smith" | fl compl*,delay*,inplace*

The following is returned:

ComplianceTagHoldApplied : False
DelayHoldApplied         : False
DelayReleaseHoldApplied  : False
InPlaceHolds             : {}

I have also tried the following:

Disable-Mailbox -Identity 'John Smith' -IgnoreLegalHold -PermanentlyDisable

But then I get:

Cannot Disable-Mailbox for 'John Smith' because this user has a valid license.


Please help!
Avatar of carbonbase
carbonbase
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

I have also tried the command:

Set-User John.Smith@contoso.com -PermanentlyClearPreviousMailboxInfo

which returns...

The command completed successfully but no settings of John Smith have been modified.
Avatar of Vasil Michev (MVP)
What's your source of authority for identity managment? Do you do AAD Connect?
Are you sure there's single AD object for the user and not two different ones? Might be worthwhile running Idfix tool.

When you removed the mailbox license for the mailbox under in-place hold, have a look if you can locate the mailbox under 'Inactive mailboxes' in your O365 and delete from there:
https://docs.microsoft.com/en-us/office365/securitycompliance/create-and-manage-inactive-mailboxes#step-2-delete-the-mailbox

Good luck
ASKER CERTIFIED SOLUTION
Avatar of carbonbase
carbonbase
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you both for your comments, which helped me along the way to a solution.