Disable Directory Sync for Office 365

By | on 18/01/2018 | 0 Comment
Disable Directory Sync for Office 365
5 (100%) 2 votes

Disabling your local Active Directory Sync to Office 365 can be more challenging than you think. This is because all the information is very dispersed and there are a lot of references to DirSync. So, this is how you do it today! January 2018.

Enabled Sync without using the IdFix tool in advanced? Have duplicated users and can’t delete them?
Here is current way to disable Active Directory Sync with Office 365.

If using Powershell V1:
The first step is to uninstall the Microsoft Azure Active Directory Connect

The next step is to download and install the Azure Active Directory Connection for PowerShell

It will create a shortcut on the desktop. You can also run it by pressing the “Windows Key” and searching for Microsoft Azure Active Directory Module for Windows PowerShell

If using PowerShell V2
Type:

Install-Module -Name AzureAD

Type:
$UserCredential = Get-Credential
Connect-MsolService -Credential $UserCredential

And insert your Office 365 Global Admin Credentials

Type:
Connect-MsolService -Credential $UserCredential

To disable the Sync run the following command
Set-MsolDirSyncEnabled –EnableDirSync $false

To confirm the new status use the following command

(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled

The result should be “false”

Now you can go back to users and delete duplicated entries and fix any errors. Make sure to use the IdFix Tool before you start synchronization again.

Tags:

Comments are closed.
%d bloggers like this: