Uninstalling AADSync

Updated on 28 August 2015

IMPORTANT: AAD Connect has replaced AADSync and DirSync. Reference: Azure Active Directory Sync

AADSync Replaced

+++++

NOTE: On 16 April 2015, the latest version of AADSync was released, and is available here to download here.

NOTE: As of 27 October 2014, password synchronization is available with AADSync version 1.0.0470.1023 (refer to AAD Sync Version Release History).

If a need arises that requires the removal of the AADSync tool, the following screenshot shows a list of items installed with the AADSync tool that will need to be uninstalled.

AADSync Installed Items

NOTE: If AADSync will be removed, it may be required to deactivate Active Directory synchronization in the Office 365 account prior to proceeding with the next steps. Each environment will be different, so please make sure to understand your environment requirements before going forward. If there are multiple forests being synched to one Office 365 account, this action will affect all forests.

Prior to removing AADSync with the RTM version, we were required to disable the Azure AD Sync Scheduler scheduled task or we would have received the following message with uninstalling Microsoft Azure AD Connection Tool…

Please close this installation guide and disable the Azure AD Sync Scheduler task before changing your configuration.

Removing AADSync

With version 1.0.0470.1023, only step we must perform is to open the Programs and Features applet, select Microsoft Azure AD Connection Tool and click Uninstall/Change. When the AADSync uninstall wizard starts, click Uninstall to proceed with the removal.

During the uninstall, all of the associated applications will be removed as well. Don’t forget to restart the server at the conclusion of the uninstall.

Below is a list of applications that are removed when the Microsoft Azure AD Connection Tool is removed first.

  • Microsoft Azure AD Sync
  • Microsoft SQL Server 2012 Command Line Utilities
  • Microsoft Online Services Sign-in Assistant [Restart is required]
  • Forefront Identity Manager Windows Azure Active Directory Connector
  • Microsoft SQL Server 2012 Express LocalDB
  • Microsoft SQL Server 2012 Native Client

Additionally, the Azure AD Sync Scheduler scheduled task is removed from the Task Scheduler … and that will complete the removal of AADSync.

WARNING!!! The following steps to remove AADSync manually are at your own risk and I provide no guarantees.

Manual Removal

If we do not choose to remove the Microsoft Azure AD Connection Tool first and instead uninstall the other 6 applications individually, we may not be able to proceed with the removal (or reinstall) AADSync without a bit of extra effort.

The following error is received if the Synchronization Service (Microsoft Azure AD Sync) is removed before the Microsoft Azure AD Connection Tool

Unable to uninstall the Synchronization Service. Please see the event log for additional details.

The following error is received during reinstallation due to a failed uninstall…

The ADSync PowerShell extensions required by this installation guide are missing. This is usually due to a previously undetected uninstall failure. Please resolve this issue before continuing.

To remove manually, we can delete the following keys from the registry…

  • HKEY_CLASSES_ROOT\TypeLib\{1EE655FB-EC8A-4CFE-BFE7-E8D46BC87B6A}
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AD Sync
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSOLCoExistence
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicrosoftAzureADConnectionTool
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks\{0311B5B5-B05D-47A0-89D8-98AED5A0D204}
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Azure AD Sync Scheduler
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\AzureActiveDirectoryDirectorySyncTool
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\DirectorySyncTool_RASAPI32
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\DirectorySyncTool_RASMANCS

And these folders…

  • C:\Program Files\Microsoft Azure AD Connection Tool
  • C:\Program Files\Microsoft Azure AD Sync

Related Article(s):

Reference(s):

Advertisements

5 thoughts on “Uninstalling AADSync

  1. I am not able to find {1EE655FB-EC8A-4CFE-BFE7-E8D46BC87B6A} anywhere in that key.
    I do see bunch of GUIDs but how do I know which one is to be deleted? – Thanks Riaz

    • I wonder if the key varies based on language version of AADSync installed and/or the version of OS it is installed on. Perform a search for either of the key search terms (below) and delete the associated GUID. I will do some research to see if I can find out anything different.

      – AD Sync
      – MicrosoftAzureADConnectionTool
      – Microsoft Azure AD Connection Tool
      – Microsoft Azure AD Sync
      – Azure Active Directory Sync Tool
      – Azure Active Directory Directory Sync Tool
      – AzureActiveDirectoryDirectorySyncTool

  2. I would recommend not to delete the “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB” regkey. I renamed it to be sure and was glad I did, otherwise a new installation wouldn’t install succesfully. Thanks for the instructions though!

    • I did not have the same experience that you did after deleting the SQL registry key but the process for a manual removal of AADSync is a last resort. If we select to remove “Microsoft Azure AD Connection Tool” first, then the uninstall should go without issue.

      I do, however, appreciate your input. Thank you!

  3. Pingback: Uninstall AAD Sync from on-prem sync server | Directory Services

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s