By Chuck McNeil, July 4th, 2020

Hello and Happy 4th of July!

Yesterday I created two, on-premise AD user accounts. When I logged in today, I did not see the accounts in Azure AD users.  I checked the directory sync status and sure enough, it had not synced.  I tried manually syncing. That did not work. I opened Azure AD Connect and received this:

An error has occurred

An error as occurred on the Root page preventing Azure AD connect from continuing.  To protect existing data, the wizard must be closed.

InvalidOperationException

Service ADsync was not found on computer

The next thing I did was uninstall AD Connect, but then I had issues reinstalling.  I tried removing the windows folders and using a registry cleaner to no avail.  Then I searched through the registry and removed everything I could find related to AD Connect. I was then able to re-install, configure and all is well now.

The whole thing took about forty-five minutes to fix, but I dug into it and found that by removing two keys in the registry, it would have worked and I could have saved myself some time. 

The key names vary but the product names will be:

Microsoft Azure AD Connect Health agent for sync”

“Microsoft Azure AD Connect synchronization services”

located here in the registry.

KEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\

Look for product name: Microsoft Azure AD Connect Health agent for sync and delete the whole folder (the name will be similar to B653466B76163DC4D8F918CE1F7B4620).

Look for product name: Microsoft Azure AD Connect synchronization services (the name will be similar to B653466B76163DC4D8F918CE1F7B4620). 

After removing you should be able to reinstall or configure if you have not uninstalled already.

See below for an example of one of the keys:

By Chuck

Leave a Reply

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