Microsoft small business knowledge base

Article ID: 2508225 - Last Review: December 12, 2014 - Revision: 24.0


After you enter your enterprise admin credentials in the Microsoft Azure Active Directory Sync tool Configuration Wizard, you receive the following error message:
LogonUser() Failed with error code: 1789


This issue typically occurs when the computer on which you're running the Directory Sync tool can't authenticate with Active Directory.


To resolve this issue, use one or more of the following methods:
  • Restart the computer.
  • Join the computer to a workgroup and then join the computer back to the domain. To do this, follow these steps:
    1. Click Start, right-click Computer, and then click Properties.
    2. Under Computer name, domain, and workgroup settings, click Change Settings.
    3. Click the Computer Name tab, and then click Change.
    4. Select the Workgroup option, and then type a workgroup in the Workgroup dialog box.
    5. Restart the computer.
    6. Repeat steps 1 through 3.
    7. Select the Domain option, and then type the domain name in the Domain dialog box to add the computer back to the domain.
    8. Restart the computer.
Still need help? Go to the Office 365 Community ( website or the Azure Active Directory Forums ( website.

Applies to
  • Microsoft Azure cloud services
  • Microsoft Azure Active Directory
  • Microsoft Office 365
  • Microsoft Intune
  • CRM Online via Office 365 E Plans
  • Microsoft Azure Recovery Services
  • Office 365 Identity Management
o365 o365a o365e o365m o365022013 KB2508225
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support