skip to Main Content

Uninstall Azure AD Connect

We like to uninstall Azure AD Connect. The organization will not use Azure AD Connect anymore to sync AD objects between on-premises AD and Azure AD because the servers are moved to the cloud. This is when we like to delete Azure AD Connect. In this article, we will look at how to remove Azure AD Connect from server.

Locate Azure AD Connect server

Start PowerShell as administrator. Make sure that you have privileges to search in Active Directory. After running the cmdlet, we do know that it’s installed on the server DC01.

PS C:\> Get-ADUser -LDAPFilter "(description=*configured to synchronize to tenant*)" -Properties description | % { $_.description.SubString(142, $_.description.IndexOf(" ", 142) -142)}

Disable Azure AD Connect synchronization

Log in to the Windows Server, where you have Azure AD Connect installed and configured. Start PowerShell as administrator and run Import-Module ADSync. Follow with the Set-ADSyncScheduler cmdlet to stop the synchronization.

PS C:\> Import-Module ADSync

PS C:\> Set-ADSyncScheduler -SyncCycleEnabled $False

Uninstall Azure AD Connect from server

Click on Start > Control Panel > Programs and Features. Click on Microsoft Azure AD Connect and press on Uninstall.

Uninstall Azure AD Connect programs and features

The Uninstall Azure AD Connect wizard shows up. Check the checkbox Also uninstall supporting components. Click Remove.

Uninstall Azure AD Connect remove

Give it a couple of minutes, and you will see the green checkmarks. Azure AD Connect is successfully uninstalled. Click Exit.

Uninstall Azure AD Connect finish

Azure AD Connect is removed from the Programs and Features list.

Uninstall Azure AD Connect programs and features after uninstall

Start File Explorer. Go to C:\Program Files. Right-click Microsoft Azure AD Sync folder and click on Delete to remove Microsoft Azure AD Sync folder.

Uninstall Azure AD Connect delete folder in program files

In File Explorer, navigate to the C:\Users folder. Remove the AAD_ folders. You may see folders with the prefix ADSyncMSA_. If so, remove these — more information about the ADSync service account.

Delete AAD_ folder in users

Azure AD Connect is successfully removed. Did this help you to remove Azure AD Connect from server?

Read more: Upgrade Azure AD Connect »


In this article, you learned how to uninstall Azure AD Connect. First, go through the uninstall wizard. After that, delete Azure AD Connect folders in File Explorer. You can always reinstall Azure AD Connect on the same server.

Did you enjoy this article? You may also like Force sync Azure AD Connect with PowerShell. Don’t forget to follow us and share this article.



ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top