Forum Discussion

Philippe_Trouillot's avatar
Philippe_Trouillot
Copper Contributor
Sep 10, 2024

M365 Exchange : Contact suppression Issue

Hello,

we created a guest account to share a file, but we had a problem. There Are two exchange contact was created and I can't suppress there. Mail can't be deliver to this external contact with this error :

 

Reason: [{LED=420 4.2.0 Transient Failure during recipients lookup AmbiguousRecipientTransientException, Exception of type 'Microsoft.Exchange.Transport.Categorizer.AmbiguousRecipientTransientException' was thrown.};{MSG=};{FQDN=};{IP=};{LRT=}]

 

I could suppress Guest account on Entra ID, and I did, but I have already this two Exchange Mail contact account.

 

 

I used graphic interface and powershell commande :

Remove-Mailcontact -Identity "rholdXXXXXXXX"

 

Write-ErrorMessage : Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|Impossible d'effectuer l'opération, car l'objet 'rhoXXXXXXX est introuvable
sur 'DB7PR03A07DC001.EURPR03A007.PROD.OUTLOOK.COM'.
Au caractère C:\Users\uptr0001\AppData\Local\Temp\tmpEXO_0uvzubhp.rep\tmpEXO_0uvzubhp.rep.psm1:1205 : 13
+ Write-ErrorMessage $ErrorObject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-MailContact], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=DB9PR03MB7723,RequestId=35acbab2-9fae-f969-e098-bc9aba96ee31,TimeStamp=Mon, 09 Sep 2024 05:59:44 GMT],Write-ErrorMessage

 

I precise I'm global Admin. what can I do to suppress these contacts ?


regards


9 Replies

  • Use the GUID when running the cmdlet, i.e. Remove-Mailcontact GUID_of_the_contact
    • Philippe_Trouillot's avatar
      Philippe_Trouillot
      Copper Contributor

      I saw my two contact on interface :

      but I don't find GUID with powershell

       

      I tried "export contact" command and excel csv file gave me some identifiant 

       

       

      I tried wit these information, but I can't suppress it 

       

       

      what can I do ? many thank's per advance

       

      VasilMichev 

      • VasilMichev's avatar
        VasilMichev
        MVP
        If those are guest users, use the Get-MailUser/Remove-MailUser cmdlet.

Resources