Wednesday, November 12, 2014

Update-recipient: [Object] wasn't found. Please make sure you've typed it correctly.


Got a misleading error message from Exchange Powershell cmdlets.

Problem description
  • FIM 2010
  • AD DS MA
  • Provision for Exchange 2010
  • Export contact
  • No error message
  • Contact object not mail-enabled
  • Try PS command via Exchange Management Shell
  • Object not found (see error below)
Resolution
  • mailNickname was empty!

[PS] C:\>update-recipient -Identity "CN=Whisky Tango (wtango@foxtrot.ca),OU=Contacts,DC=exchange,DC=loc" -DomainController Exchange2010srv.exchange.loc
Creating a new session for implicit remoting of "Update-Recipient" command...
exchange.loc/Contacts/Whisky Tango (wtango@foxtrot.ca) wasn't found. Please make sure you've typed it correctly.
    + CategoryInfo          : ObjectNotFound: (exchange.loc/Co...tango@foxtrot.ca):RecipientIdParameter) [Update-Recipient], ManagementObjectNotFoundException

    + FullyQualifiedErrorId : 4247562D,Microsoft.Exchange.Management.RecipientTasks.UpdateRecipient