Disable sync Active Directory to Office365

Federico Coppola 1,181 Reputation points
2020-08-17T10:02:45.677+00:00

Disable sync Active Directory to Office365

Hi all,
I have a domain controller that has got "Windows AD Connect".
I have configured it "Password Hash sync".
I have created an Organization Unit on premise Active Directory and inside it there are just two users.

Now I want remove this password sync with Office365.
I have tried to remove my user from this OU and "Windows AD Connect" sync properly.
The problem is that "Windows AD Connect" continue to disable my user (I found my user inside delete user on Office365)
during every sync with cloud.

I have found this log about sync: "exported-change-not-reimported"

How can I fix it?
Thanks17897-warning1.png

17898-warning2.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jon Alfred Smith 541 Reputation points
    2020-08-17T10:19:52.547+00:00

    Use PowerShell

    Install Azure AD modul
    Install-Module -Name AzureAD

    Get credentials
    $UserCredential = Get-Credential

    Connect to the service
    Connect-MsolService -Credential $UserCredential

    Disable the Sync
    Set-MsolDirSyncEnabled –EnableDirSync $false

    Confirm the new status
    (Get-MSOLCompanyInformation).DirectorySynchronizationEnabled

    Disable Azure AD Directory Sync without AD Connect
    https://morethanpatches.com/2018/07/02/disable-azure-ad-directory-sync-without-ad-connect/

    0 comments No comments

  2. Federico Coppola 1,181 Reputation points
    2020-08-17T18:52:11.773+00:00

    Hi, thanks for your reply.
    I will try your steps!

    After that I have disable sync can I remove users from OU without problem? Thanks

    Best regards

    0 comments No comments