none
Runnging Azure ADconnect 2nd time RRS feed

  • Question

  • hello

    we used to have email boxs from a onp rem exhcange. few years ago we moved to O365. they used ADconnct to migrate us to it

    after the migration we no longer need or conncte to trhe ISP AD

    now i want to run ADconnect on my AD, but the X500 allreday fiiled and the sync fails

    what can i do to sync

    Saturday, October 19, 2019 8:19 PM

All replies

  • Has the previous version been removed or is it still there?If it is still installed you should disable the directory sync and then reinstall it.

    Check out the answer to this similar question: https://social.msdn.microsoft.com/Forums/en-US/c59b06c1-4e57-4dcd-a855-6e1c412a0dd2/remove-azure-ad-connect-and-reinstall?forum=WindowsAzureAD

    How to Uninstall AD Connect

    1. Open PowerShell (Run as Administrator).

    2. Install Microsoft Online module for Azure Active directory using the following command:

    Install-Module -Name MSonline

    If prompted to continue, input “Y” and press enter. Any subsequent confirmations can be accepted by inputting “A” for “Yes to All” and pressing Enter.

    3. Input login credentials using the following PowerShell command:

    $msolcred = get-credential

    You will be prompted to authenticate. Use the global administrator account within your Office 365 tenant (user@mydomain.com) and the corresponding password.

    4. Initiate Connection to Office 365 using the following PowerShell command:

    connect-msolservice -credential $msolcred

    5. Keep this PowerShell instance open.

    6. Uninstall Azure AD Connect application (and services) from your local domain environment using Control Panel.

    Uninstall Microsoft Azure AD Connect

    7. Once you have AD Connect uninstalled, you will still need to disable the service through office 365. To do so, use the following PowerShell command.

    Set-MsolDirSyncEnabled -EnableDirSync $false

    You will be prompted to confirm, press Y to confirm and then press Enter.

    Confirm?

    8. To verify that directory sync was fully disabled, use the following PowerShell command:

    (Get-MSOLCompanyInformation).DirectorySynchronizationEnabled

    A returned value of False will validate the deactivation.

    To Reenable:

    If you ever need to reenable AD Connect, repeat the PowerShell procedures above and use the following command in place of step 7:

    
    
    Set-MsolDirSyncEnabled -EnableDirSync $true
    
    
    Good blog post on this.

    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!



    Tuesday, October 22, 2019 9:22 PM
    Moderator
  •  Please remember to mark one of the responses as answer if your question has been answered. If not please let us know if there are anymore questions. Thanks

    Friday, October 25, 2019 10:53 PM
    Moderator