While installing Edge Transport Server role on Windows Server 2016, if you get the following error:
Error: The following error was generated when “$error.Clear();
install-adam -Port $RoleAdamLdapPort -SslPort $RoleAdamSslPort
” was run: “Microsoft.Exchange.Management.Edge.SetupTasks.AdamSetAclsProcessFailureException: Active Directory Lightweight Directory Service (AD LDS) process dsacls.exe failed with error code 58 when setting the access control list (ACL) on OU=MSExchangeGateway. at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
Workaround
Check the following two things:
2. problem with the default permissions on the target drive
Happy server administration.