Forum Discussion

Steven Powers's avatar
Steven Powers
Copper Contributor
May 21, 2018

What is the best way of fixing Office 365/AD accounts with no target address created

I have several Active Directory accounts, 50 plus, that were created using AD and not Exchange Admin Center, and as a result, these accounts are missing SMTP/smtp, Target Address and MSEXCHREMOTERECIPIENT attributes. I have tried manually entering them in the Attribute Editor, but then about a third of the time, since they have already synced to Office 365 it creates a duplicate account, username1234@domain.mail.onmicrosoft.com . My question is two fold, first what is the best way of fixing this to avoid making the duplicate account, and then the second question is, once the bad duplicate account is created, how do I fix it? I need the target address as both my scanner and Asset Management applications require the target address to send mail to the users. Any help is greatly appreciated.

5 Replies

  • In the Exchange Management Shell (on-premises to your Exchange Server) run Enable-RemoteMailbox <name> -RemoteRoutingAddress <name>@tenantname.mail.onmicrosoft.com and this will enable them for Exchange properly. You might need to set them as shared mailboxes or resources etc. as appropriate for the individual mailboxes.

    The 1234 duplicate scenario will resolve itself once the duplicate is fixed. Using the DirSync errors view in the Office 365 Admin portal (under Reports) see who is the duplicate and resolve where the issue is. Note that email addresses on one object can duplicate with UPNs on other objects and that might be the source of the problem as well

    Brian Reid
    Office 365 MVP
    • Steven Powers's avatar
      Steven Powers
      Copper Contributor

      Brian, thanks for the quick response, but would you be able to elaborate? I was working on one duplicate earlier and after moving the User Object into an unsynced OU, and then syncing, I then replaced him in the original OU and in Active Users/Mail Settings/ It said to migrate his account, but when I did the migration failed because no listening device was listening to our service on the end point. 

Resources