Exchange 2013 Mailbox Role Installation Error

Hi All,

I am getting the below error when installing Exchange 2013 Mailbox Role. This is a Windows Server 2012. Previous Exchange 2013 setup was removed since it had issues with CAS. Now we have removed all previous Exchange software and attributes.

Error:
The following error was generated when "$error.Clear();
          Install-ExchangeCertificate -services IIS -DomainController $RoleDomainController
          if ($RoleIsDatacenter -ne $true -And $RoleIsPartnerHosted -ne $true)
          {
            Install-AuthCertificate -DomainController $RoleDomainController
          }
        " was run: "Microsoft.Exchange.Management.Metabase.IISGeneralCOMException: An IIS directory entry couldn't be created. The error message is The system cannot find the path specified.
. HResult = -2147024893 ---> System.Runtime.InteropServices.COMException: The system cannot find the path specified.

   at System.DirectoryServices.DirectoryEntry
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.RefreshCache()
   at System.DirectoryServices.DirectoryEntry.FillCache(String propertyName)
   at System.DirectoryServices.PropertyCollection.KeysCollection.GetEnumerator()
   at Microsoft.Exchange.Management.Metabase.IisUtility.GetProperties(DirectoryEntry webObj)
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Management.Metabase.IisUtility.GetProperties(DirectoryEntry webObj)
   at Microsoft.Exchange.Management.Metabase.IisUtility.GetWebSiteSslCertificate(String webObjectPath)
   at Microsoft.Exchange.Management.SystemConfigurationTasks.InstallExchangeCertificate.FindIisCertificate()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.InstallExchangeCertificate.InternalProcessRecord()
   at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
   at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".

Any views on this is appreciated.

Regards

Boniface

Senior Systems Administrator

March 13th, 2015 1:14am

Hi

Have you tried removing the IIS role, rebooting and adding it back again?

Free Windows Admin Tool Kit Click here and download it now
March 13th, 2015 1:30am

Yes i did remove the IIS and adding it back, still having the same issue.
March 13th, 2015 1:35am

Hi Bonifacef,

did you verify Exchange Trusted Subsystem is included in your local admin Group?

Please go to the IIS Management, do you have more than one Site configured?

As an earlier Installation failed, also use adsiedit to check if the Server is already created in the Exchange Server Service node (do not remote it if you have more than  the Mailbox role running on that Server!), and check the Server node if the virtual Directory setting is already present in AD. 

If yes, please remove this particular Folder  entry and retry.

Regards,
Martin

Free Windows Admin Tool Kit Click here and download it now
March 13th, 2015 1:45am

Hi Martin,

Exchange Trusted Subsystem has the local admin group included. IIS is fresh and was installed while Exchange Prerequisites.  

We already removed old server attributes from ADSI edit and this is how the new attribs look.

March 13th, 2015 2:18am

Hi,

After uninstalling the IIS, please run the following command to install prerequisites.

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

Then remove the water mark key and action key under the following registry and initiate the setup again.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15.0\HubTransportRole

In addition, please disable any third-part software for troublwshooting.

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
March 16th, 2015 9:14am

This issue was resolved by rebuilding a new server removing all left over server attributes.
  • Marked as answer by Bonifacef 42 minutes ago
March 20th, 2015 2:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics