I’m trying to apply some settings to a mailbox via PowerShell but I’m getting this error back. There are actually two users with the same name in the domain, but I cannot delete them. I wonder if there is any way to force this change?
This is command:
$Credentials = Get-Credential
Connect-ExchangeOnline -UserPrincipalName USER
$SignatureSocial = Get-Content C:\Users\joao.victor\Desktop\assinatura.txt
Get-User -Identity “USER” | Set-MailboxMessageConfiguration -SignatureHTML $SignatureSocial -AutoAddSignature:$true