SOLVED

Cannot delete contacts in Exchange Admin center for on-prem users

%3CLINGO-SUB%20id%3D%22lingo-sub-2326912%22%20slang%3D%22en-US%22%3ECannot%20delete%20contacts%20in%20Exchange%20Admin%20center%20for%20on-prem%20users%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326912%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20am%20not%20able%20to%20create%20new%20Online%20mailboxes%2C%20because%20the%20on-prem%20mail%20users%20exist%20as%20contacts%20in%20the%20Exchange%20Admin%20Center.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3EWhen%20I%20try%20to%20delete%20the%20contacts%20there%2C%20the%20following%20error%20messages%20appear%3A%3C%2FDIV%3E%3CDIV%3ENew%20Exchange%20Admin%20Center%3A%20%22We%20have%20a%20problem%20with%20our%20server.%20Please%20try%20to%20resubmit%20your%20request%20later%22.%3C%2FDIV%3E%3CDIV%3EOld%20Exchange%20Admin%20Center%3A%20%22Error%20checking%20in%20agent%20'Windows%20LiveId%20Agent'%3A%20'Unable%20to%20save.%20'Admin%20STEP'%20is%20outside%20of%20a%20valid%20server%20writing%20range.%22%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EWhen%20I%20tried%20to%20delete%20the%20on-prem%20mailuser%20with%20the%20command%20Remove-MailUser%20in%20PowerShell%2C%20appears%20again%20the%20same%20error%20message%3A%3C%2FDIV%3E%3CDIV%3E%22Error%20checking%20in%20agent%20'Windows%20LiveId%20Agent'%3A%20'Unable%20to%20save.%20'Admin%20STEP'%20is%20outside%20of%20a%20valid%20server%20writing%20range.%22%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EHybrid%20configuration%20isn't%20set%20up.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2326912%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327399%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20contacts%20in%20Exchange%20Admin%20center%20for%20on-prem%20users%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327399%22%20slang%3D%22en-US%22%3EIf%20you%20are%20certain%20you%20want%20to%20delete%20these%20objects%20(as%20in%20they%20are%20not%20using%20any%20other%20services%20within%20M365)%2C%20use%20the%20Remove-MsolUser%20cmdlet.%20Or%20exclude%20them%20from%20the%20scope%20of%20dirsync.%3CBR%20%2F%3E%3CBR%20%2F%3EAlternatively%2C%20if%20you%20want%20to%20%22reset%22%20their%20ExO%20status%20(for%20migration)%2C%20you%20can%20try%20the%20method%20outlined%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fpermanently-clear-previous-mailbox-info%2Fba-p%2F607619%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fpermanently-clear-previous-mailbox-info%2Fba-p%2F607619%3C%2FA%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

I am not able to create new Online mailboxes, because the on-prem mail users exist as contacts in the Exchange Admin Center.

When I try to delete the contacts there, the following error messages appear:
New Exchange Admin Center: "We have a problem with our server. Please try to resubmit your request later".
Old Exchange Admin Center: "Error checking in agent 'Windows LiveId Agent': 'Unable to save. 'Admin STEP' is outside of a valid server writing range."
 
When I tried to delete the on-prem mailuser with the command Remove-MailUser in PowerShell, appears again the same error message:
"Error checking in agent 'Windows LiveId Agent': 'Unable to save. 'Admin STEP' is outside of a valid server writing range."
 
Hybrid configuration isn't set up.
 
1 Reply
best response confirmed by AtanasM (Frequent Contributor)
Solution
If you are certain you want to delete these objects (as in they are not using any other services within M365), use the Remove-MsolUser cmdlet. Or exclude them from the scope of dirsync.

Alternatively, if you want to "reset" their ExO status (for migration), you can try the method outlined here: https://techcommunity.microsoft.com/t5/exchange-team-blog/permanently-clear-previous-mailbox-info/ba...