Disable Azure AD Connect on your tenant

by | Jan 5, 2022 | Azure | 0 comments

Learn how to disable synchronization between your on-premise environment and AAD

Today I needed to disable synchronization between one of my tenant and the on-premise environment which was removed earlier. The reason was that I still receiving emails like the below:

Your identity synchronization from on-premises is unhealthy

So I decided to turn off that synchronization. This can be done by using three PowerShell commands with the account that has proper permissions to do that.

First, you need to install the MSOnline module if you don’t have installed on your device.

Install-Module MSOnline

The next step was logging in to this Module

Connect-MsolService

After that – you need to disable synchronization by using this command:

Set-MsolDirSyncEnabled -EnableDirSync $false

To check if synchronization was disabled you can execute this command:

Get-MsolCompanyInformation | select DirectorySynchronizationEnabled

Should return False

And it’s everything. Synchronization was turned off.

Jakub Piesik

Jakub Piesik

Microsoft 365 Consultant

I’m writing not only about Intune and Windows 365. I’m writing about everything what I leared previously and want to share with you!

#security #microsoft365 #intune #windows365 #powershell #automation 🙂