question

MeganNavitsky-5740 avatar image
MeganNavitsky-5740 asked ·

Getting An Error When Running Microsoft Azure Active Directory Connect (NotSupportedExecption)

Hi all,

I am trying to integrate our on site Active Directory into Azure Active Directory. I am unable to run the Microsoft Azure Active Directory Connect without receiving the error message below. I'm currently running the service on Windows Server 2016. I've gone through all of the prerequisites for Azure AD Connect. I've included the log file generated when the service fails


12139-azure-ad-connect-error.png




09:54:22.303 [INFO ]
09:54:22.303 [INFO ] ================================================================================
09:54:22.303 [INFO ] Application starting
09:54:22.303 [INFO ] ================================================================================
09:54:22.303 [INFO ] Start Time (Local): Mon, 06 Jul 2020 09:54:22 GMT
09:54:22.303 [INFO ] Start Time (UTC): Mon, 06 Jul 2020 13:54:22 GMT
09:54:22.303 [INFO ] Application Version: 1.5.30.0
09:54:22.303 [INFO ] Application Build Date: 2020-05-04 17:57:50Z
09:54:26.433 [INFO ] Telemetry session identifier: {f1a20c98-e95c-4cbb-94b1-89d0babc4364}
09:54:26.433 [INFO ] Telemetry device identifier: nCAHS0N9+ESBYf0amKsrwSMfvCCqNQhXYQKDT2vrV0k=
09:54:26.433 [INFO ] Application Build Identifier: AD-IAM-HybridSync master (5e597c78f)
09:54:26.480 [INFO ] machine.config path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.
09:54:26.480 [INFO ] Default Proxy [ProxyAddress]: <Unspecified>
09:54:26.480 [INFO ] Default Proxy [UseSystemDefault]: Unspecified
09:54:26.480 [INFO ] Default Proxy [BypassOnLocal]: Unspecified
09:54:26.480 [INFO ] Default Proxy [Enabled]: True
09:54:26.480 [INFO ] Default Proxy [AutoDetect]: Unspecified
09:54:26.480 [INFO ] Default Proxy [UseDefaultCredentials]: False
09:54:26.511 [VERB ] Scheduler wizard mutex wait timeout: 00:00:05
09:54:26.511 [INFO ] AADConnect changes ALLOWED: Successfully acquired the configuration change mutex.
09:54:26.558 [INFO ] RootPageViewModel.GetInitialPages: Beginning detection for creating initial pages.
09:54:26.574 [INFO ] Checking if machine version is 6.1.7601 or higher
09:54:26.589 [INFO ] The current operating system version is 10.0.14393, the requirement is 6.1.7601.
09:54:26.589 [INFO ] Password Hash Sync supported: 'True'
09:54:26.589 [INFO ] DetectInstalledComponents stage: The installed OS SKU is 8
09:54:26.605 [INFO ] DetectInstalledComponents stage: Checking install context.
09:54:26.605 [INFO ] Performing direct lookup of upgrade codes for: Microsoft Visual C++ 2013 Redistributable Package
09:54:26.605 [VERB ] Getting list of installed packages by upgrade code
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {20400cf0-de7c-327e-9ae4-f0f38d9085f8}: no registered products found.
09:54:26.621 [INFO ] Determining installation action for Microsoft Visual C++ 2013 Redistributable Package (20400cf0-de7c-327e-9ae4-f0f38d9085f8)
09:54:26.621 [INFO ] Product Microsoft Visual C++ 2013 Redistributable Package is not installed.
09:54:26.621 [INFO ] Performing direct lookup of upgrade codes for: Microsoft Directory Sync Tool
09:54:26.621 [VERB ] Getting list of installed packages by upgrade code
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: no registered products found.
09:54:26.621 [INFO ] Determining installation action for Microsoft Directory Sync Tool UpgradeCodes {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}, {dc9e604e-37b0-4efc-b429-21721cf49d0d}
09:54:26.621 [INFO ] DirectorySyncComponent: Product Microsoft Directory Sync Tool is not installed.
09:54:26.621 [INFO ] Performing direct lookup of upgrade codes for: Azure AD Sync Engine
09:54:26.621 [VERB ] Getting list of installed packages by upgrade code
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {545334d7-13cd-4bab-8da1-2775fa8cf7c2}: no registered products found.
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {dc9e604e-37b0-4efc-b429-21721cf49d0d}: no registered products found.
09:54:26.621 [INFO ] GetInstalledPackagesByUpgradeCode {bef7e7d9-2ac2-44b9-abfc-3335222b92a7}: no registered products found.
09:54:26.621 [INFO ] Determining installation action for Azure AD Sync Engine (545334d7-13cd-4bab-8da1-2775fa8cf7c2)
09:54:27.896 [INFO ] Product Azure AD Sync Engine is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Synchronization Agent
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {3cd653e3-5195-4ff2-9d6c-db3dacc82c25}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Azure AD Connect Synchronization Agent (3cd653e3-5195-4ff2-9d6c-db3dacc82c25)
09:54:27.896 [INFO ] Product Azure AD Connect Synchronization Agent is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Health agent for sync
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {114fb294-8aa6-43db-9e5c-4ede5e32886f}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Azure AD Connect Health agent for sync (114fb294-8aa6-43db-9e5c-4ede5e32886f)
09:54:27.896 [INFO ] Product Azure AD Connect Health agent for sync is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {0c06f9df-c56b-42c4-a41b-f5f64d01a35c}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (0c06f9df-c56b-42c4-a41b-f5f64d01a35c)
09:54:27.896 [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Azure AD Connect Administration Agent
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Azure AD Connect Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)
09:54:27.896 [INFO ] Product Azure AD Connect Administration Agent is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Command Line Utilities
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {52446750-c08e-49ef-8c2e-1e0662791e7b}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Microsoft SQL Server 2012 Command Line Utilities (52446750-c08e-49ef-8c2e-1e0662791e7b)
09:54:27.896 [INFO ] Product Microsoft SQL Server 2012 Command Line Utilities is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Express LocalDB
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {c3593f78-0f11-4d8d-8d82-55460308e261}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Microsoft SQL Server 2012 Express LocalDB (c3593f78-0f11-4d8d-8d82-55460308e261)
09:54:27.896 [INFO ] Product Microsoft SQL Server 2012 Express LocalDB is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Microsoft SQL Server 2012 Native Client
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {1d2d1fa0-e158-4798-98c6-a296f55414f9}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Microsoft SQL Server 2012 Native Client (1d2d1fa0-e158-4798-98c6-a296f55414f9)
09:54:27.896 [INFO ] Product Microsoft SQL Server 2012 Native Client is not installed.
09:54:27.896 [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Authentication Agent
09:54:27.896 [VERB ] Getting list of installed packages by upgrade code
09:54:27.896 [INFO ] GetInstalledPackagesByUpgradeCode {fb3feca7-5190-43e7-8d4b-5eec88ed9455}: no registered products found.
09:54:27.896 [INFO ] Determining installation action for Microsoft Azure AD Connect Authentication Agent (fb3feca7-5190-43e7-8d4b-5eec88ed9455)
09:54:27.896 [INFO ] Product Microsoft Azure AD Connect Authentication Agent is not installed.
09:54:27.896 [INFO ] Determining installation action for Microsoft Azure AD Connection Tool.
[09:54:28.006] [ 2] [ERROR] A terminating unhandled exception occurred.
Exception Data (Raw): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.Management.Automation.Host.PSHostUserInterface.<>c_DisplayClass39_0.<FlushPendingOutput>b0()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.Management.Automation.Host.PSHostUserInterface.<>c
DisplayClass39_0.<FlushPendingOutput>b_0()
at System.Threading.Tasks.Task.Execute()<---

09:54:28.193 [WARN ] Failed to read DisplayName registry key: An error occurred while executing the 'Get-ItemProperty' command. Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicrosoftAzureADConnectionTool' because it does not exist.
09:54:29.282 [INFO ] Product Microsoft Azure AD Connection Tool is not installed.
09:54:29.282 [INFO ] Performing direct lookup of upgrade codes for: Azure Active Directory Connect
09:54:29.282 [VERB ] Getting list of installed packages by upgrade code
09:54:29.282 [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: verified product code {553423be-b5bf-4e1e-8afc-f97777c1a7d7}.
09:54:29.282 [VERB ] Package=Microsoft Azure AD Connect, Version=1.5.30.0, ProductCode=553423be-b5bf-4e1e-8afc-f97777c1a7d7, UpgradeCode=d61eb959-f2d1-4170-be64-4dc367f451ea
09:54:29.282 [INFO ] Determining installation action for Azure Active Directory Connect (d61eb959-f2d1-4170-be64-4dc367f451ea)
09:54:29.282 [INFO ] Product Azure Active Directory Connect (version 1.5.30.0) is installed.
09:54:29.282 [INFO ] DetectInstalledComponents stage: Verifying required DCOM registry keys are present.
09:54:29.282 [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineAccessRestriction' is present.
09:54:29.282 [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineLaunchRestriction' is present.
09:54:29.282 [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\DefaultLaunchPermission' is present.
09:54:29.375 [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.
09:54:29.375 [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)
09:54:29.375 [INFO ] ServiceControllerProvider: current service status: Running
09:54:29.375 [INFO ] Checking for DirSync conditions.
09:54:29.375 [INFO ] DirSync not detected. Checking for AADSync/AADConnect upgrade conditions.
09:54:29.375 [INFO ] Sync engine is not present. Performing clean install.
09:54:30.500 [INFO ] PreviewFeatureState [PolicyPreview]: feature state is (False).
09:54:30.532 [INFO ] ProgressWizardPageViewModel:StartProgressOperation Start background task Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ExpressSettingsPageViewModel.GatherEnvironmentData in Page:"Express Settings"
09:54:30.532 [INFO ] ProgressWizardPageViewModel:StartProgressOperation Started Background Task Id:42
09:54:30.532 [INFO ] Page transition from "Express Settings" [ExpressSettingsPageViewModel] to "Error" [ErrorPageViewModel]
[09:54:30.532] [ 21] [INFO ] Checking if machine version is 6.1.7601 or higher
[09:54:30.532] [ 21] [INFO ] The current operating system version is 10.0.14393, the requirement is 6.1.7601.
[09:54:30.532] [ 21] [INFO ] Password Hash Sync supported: 'True'
09:54:30.547 [ERROR] RootWizardPageViewModel: An unhandled exception occurred during a page load.
Exception Data (Raw): System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ErrorPageViewModel.OnLoad(NavigateDirection direction)
at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)
09:54:30.547 [ERROR] A terminating unhandled exception occurred.
Exception Data (Raw): System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ErrorPageViewModel.OnLoad(NavigateDirection direction)
at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.<>c_DisplayClass16_0.<ShowTerminatingErrorPage>b0()
at Microsoft.Online.Deployment.OneADWizard.App.SafeInvokeAction(Action action)
09:54:30.547 [INFO ] Page transition from "Error" [ErrorPageViewModel] to "Error" [ErrorPageViewModel]
[09:54:30.547] [ 2] [ERROR] A terminating unhandled exception occurred.
Exception Data (Raw): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.Management.Automation.Host.PSHostUserInterface.<>c
DisplayClass39_0.<FlushPendingOutput>b0()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.Management.Automation.Host.PSHostUserInterface.<>c
DisplayClass39_0.<FlushPendingOutput>b_0()
at System.Threading.Tasks.Task.Execute()<---

09:54:30.547 [INFO ] Express Settings install is supported: domain-joined + OS version allowed.
09:54:30.563 [INFO ] Page transition from "Error" [ErrorPageViewModel] to "Error" [ErrorPageViewModel]
[09:54:30.766] [ 2] [ERROR] A terminating unhandled exception occurred.
Exception Data (Raw): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.Management.Automation.Host.PSHostUserInterface.<>c_DisplayClass39_0.<FlushPendingOutput>b0()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.Management.Automation.Host.PSHostUserInterface.<>c
DisplayClass39_0.<FlushPendingOutput>b_0()
at System.Threading.Tasks.Task.Execute()<---

09:54:30.782 [INFO ] Page transition from "Error" [ErrorPageViewModel] to "Error" [ErrorPageViewModel]
09:54:37.277 [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20200706-095422.log
09:55:13.544 [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20200706-095422.log
09:55:20.858 [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20200706-095422.log

azure-ad-connectazure-ad-hybrid-identity
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarileeTurscak avatar image
MarileeTurscak answered ·

Where is your AD Connect Server installed? Please make sure that this is not installed on the Primary Domain Controller, as this can cause this issue.

I would also recommend making sure that you have the latest version of AD Connect, as it was just released four days ago.

Other things to check:
- Ensure that the Run profile is configured correctly (Refer: https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnectsync-configure-filtering#update-the-run-profiles)
- Confirm whether the built-in administrators group on the server has the name "Administrators" or some other values?
- Is the user account used to run the installation a member of local administrator group on the AD connect server?
- Does the AAD connect account have "Log On as Service" permission on the AD connect server (Run rspo.msc and check Administrative Tools > Local Security Policy > Local Policy > User Rights Assignment > Log on as a service)
- Is the source anchor attribute set to the default?



If you wish to start from scratch, one option is to push a new server to provision a new AD Connect on a fresh environment.

Prerequisites for Azure AD Connect
Custom installation of Azure AD Connect
Express Installation of Ad Connect

Let me know if any of these steps help. I'll be keeping an eye on this thread and can open a support case if needed.




2 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The AAD sync is installed on a separate server connected to our domain with no Domain Controller properties. I've installed the latest version of AAD sync to this server. I have never been able to get the sync running before, so I am unable to answer many of the questions asked.

-I'm unable to check if the Run profile is configured correctly, as the Synchronization Service in not available in Services.
-I have confirmed that the built-in administrators group on the server has the name "Administrators".

0 Votes 0 · ·

(cont)
-The user account used to run the installation is a member of local administrator group on the AD connect server.
-The AAD connect account that will be used has "Log On as Service" permission on the AD connect server .
-I am unable to determine if source anchor attribute set to the default because the sync has never run.
-I have tired to start from scratch with a fresh server, however I receive the same error message and similar logs when attempting to run AAD sync.

Thank you.

0 Votes 0 · ·
MarileeTurscak avatar image
MarileeTurscak answered ·

@MeganNavitsky-5740, Thank you for these details. This might be an MSI engine issue. The problem is that AAD connect installation wizard is still detecting the ADsync service product code when in fact the service is not present anymore.


A few other things you can try:


use Revo UninstallerPro to fully remove the program and registry items, remove any folders related to Azure and then restart the Server and reinstall.


Step through all the Keys in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\ and look for one with Product Name Microsoft Azure AD Connect. Delete this and restart the installer.


  • Remove the following keys, if they exist:

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\7EC08CB7BBBDF1045B31147D9AC698FB HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\E2D094C21044C254D9583B64140ED511



  • If you still are having this issue, feel free to reach out to me at AzCommunity@microsoft.com and send me your subcription ID, and I will open a one-time free support case for you.


    Share
    10 |1000 characters needed characters left characters exceeded

    Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.