carbonbase
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!
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!
You most likely have an org-wide hold applied, so check the org config: https://docs.microsoft.com/en-us/office365/securitycompliance/identify-a-hold-on-an-exchange-online-mailbox#get-organizationconfig
Also you can try the method detailed here: https://www.michev.info/Blog/Post/2388/permanently-disable-a-mailbox-in-office-365
Also you can try the method detailed here: https://www.michev.info/Blog/Post/2388/permanently-disable-a-mailbox-in-office-365
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both for your comments, which helped me along the way to a solution.
ASKER
Set-User John.Smith@contoso.com -PermanentlyClearPreviousM
which returns...
The command completed successfully but no settings of John Smith have been modified.