SOLVED

Mail Contact Removal

%3CLINGO-SUB%20id%3D%22lingo-sub-88251%22%20slang%3D%22en-US%22%3EMail%20Contact%20Removal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-88251%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20use%20on-prem%20Active%20Directory%20which%20is%20synced%20to%20Office365.%3C%2FP%3E%3CP%3EToday%20I%20notice%20that%20we%20have%20%22DirSync%20Errors%22%20and%20in%20investigating%20I've%20found%20that%20for%20a%20particular%20Mail%20Contact%20there%20are%202%20objects%20in%20Office365%2C%20but%20only%201%20on-prem%2C%20all%26nbsp%3Bwith%20the%20same%20SMTP%20addresses.%3C%2FP%3E%3CP%3EWhen%20trying%20to%20Remove-MailContact%20with%20the%20not%20wanted%20object%20in%20Office365%2C%20I'm%20told%20I%20have%20to%20do%20it%20on-prem.%20On-prem%20doesn't%20have%20the%20duplicate%2C%20only%20the%20original.%20I've%20tried%20deleting%20the%26nbsp%3Boriginal%20mail%20contact%20on-prem%2C%20and%20it%20does%20remove%20it%20from%20Office365%2C%20but%20the%20%22extra%22%20mail%20contact%20still%20appears%20in%20Office365%2C%20which%20I%20still%20can't%20delete.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20delete%20the%20%22extra%22%20Mail%20Contact%20in%20Office365%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-88251%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-88263%22%20slang%3D%22en-US%22%3ERe%3A%20Mail%20Contact%20Removal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-88263%22%20slang%3D%22en-US%22%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-88262%22%20slang%3D%22en-US%22%3ERe%3A%20Mail%20Contact%20Removal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-88262%22%20slang%3D%22en-US%22%3E%3CP%3ETry%20Remove-MsolContact%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

We use on-prem Active Directory which is synced to Office365.

Today I notice that we have "DirSync Errors" and in investigating I've found that for a particular Mail Contact there are 2 objects in Office365, but only 1 on-prem, all with the same SMTP addresses.

When trying to Remove-MailContact with the not wanted object in Office365, I'm told I have to do it on-prem. On-prem doesn't have the duplicate, only the original. I've tried deleting the original mail contact on-prem, and it does remove it from Office365, but the "extra" mail contact still appears in Office365, which I still can't delete.

 

How can I delete the "extra" Mail Contact in Office365?

 

 

2 Replies
Highlighted
Best Response confirmed by Cary Siemers (Super Contributor)
Solution

Try Remove-MsolContact :)

Highlighted

Thanks!