Installing Exchange Server 2016 Issue

%3CLINGO-SUB%20id%3D%22lingo-sub-1624935%22%20slang%3D%22en-US%22%3EInstalling%20Exchange%20Server%202016%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1624935%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%206%20exchange%20servers%202016%20CU11%26nbsp%3Bdeployed%20on%202%20sites%2C%20I%20need%20to%20install%202%20new%20exchange%20servers%20in%20DR%20site%2C%20but%20I'm%20getting%20the%20following%20error%20during%20the%20installation%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EError%3A%3C%2FP%3E%3CP%3EThe%20following%20error%20was%20generated%20when%20%22%24error.Clear()%3B%3C%2FP%3E%3CP%3EInstall-ExchangeCertificate%20-services%20IIS%20-DomainController%20%24RoleDomainController%3C%2FP%3E%3CP%3Eif%20(%24RoleIsDatacenter%20-ne%20%24true%20-And%20%24RoleIsPartnerHosted%20-ne%20%24true)%3C%2FP%3E%3CP%3E%7B%3C%2FP%3E%3CP%3EInstall-AuthCertificate%20-DomainController%20%24RoleDomainController%3C%2FP%3E%3CP%3E%7D%3C%2FP%3E%3CP%3E%22%20was%20run%3A%20%22Microsoft.Exchange.Management.Metabase.IISNotInstalledException%3A%20An%20error%20occurred%20while%20trying%20to%20access%20the%20IIS%20metabase.%20Make%20sure%20that%20the%20IIS%20Manager%20is%20installed%20and%20configured%20correctly.%20---%26gt%3B%20System.Runtime.InteropServices.COMException%3A%20Unknown%20error%20(0x80005000)%3C%2FP%3E%3CP%3Eat%20System.DirectoryServices.DirectoryEntry.Bind(Boolean%20throwIfFail)%3C%2FP%3E%3CP%3Eat%20System.DirectoryServices.DirectoryEntry.Exists(String%20path)%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Management.Metabase.IisUtility.CreateIISDirectoryEntry(String%20iisDirectoryEntryPath%2C%20TaskErrorLoggingReThrowDelegate%20writeError%2C%20Object%20identity%2C%20Boolean%20reThrow)%3C%2FP%3E%3CP%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Management.Metabase.IisUtility.CreateIISDirectoryEntry(String%20iisDirectoryEntryPath%2C%20TaskErrorLoggingReThrowDelegate%20writeError%2C%20Object%20identity%2C%20Boolean%20reThrow)%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Management.Metabase.IisUtility.GetWebSiteSslCertificate(String%20webObjectPath)%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Management.SystemConfigurationTasks.InstallExchangeCertificate.FindIisCertificate()%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Management.SystemConfigurationTasks.InstallExchangeCertificate.InternalProcessRecord()%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Configuration.Tasks.Task.%3CPROCESSRECORD%3Eb__91_1()%3C%2FPROCESSRECORD%3E%3C%2FP%3E%3CP%3Eat%20Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String%20funcName%2C%20Action%20func%2C%20Boolean%20terminatePipelineIfFailed)%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20an%20event%20id%201002%20in%20event%20viewer%20(MSExchangeSetup).%20I%20uninstalled%20IIS%20then%20reinstall%20it%20but%20no%20luck.%20I%20checked%20ADSI%20for%20any%20legacy%20exchange%20server%2C%20but%20there%20is%20no%20legacy%20record(s).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20else%20can%20I%20check%20to%20solve%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3CP%3E%E3%80%80%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1624935%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1682315%22%20slang%3D%22en-US%22%3ERe%3A%20Installing%20Exchange%20Server%202016%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1682315%22%20slang%3D%22en-US%22%3EWould%20you%20please%20tell%20us%20which%20iis%20rule%20u%20install%3CBR%20%2F%3EAlso%20i%20can%20see%20in%20the%20error%3CBR%20%2F%3EInstall-AuthCertificate%20-%20DomainController%20%24RoleDomainController%3CBR%20%2F%3E%3CBR%20%2F%3EAre%20u%20sure%20that%20the%20letancy%20and%20the%20reachability%20between%20exchange%20and%20DC%20is%20ok%3CBR%20%2F%3EAnd%20last%20thing%2C%20are%20all%20DCs%20replicated%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1687711%22%20slang%3D%22en-US%22%3ERe%3A%20Installing%20Exchange%20Server%202016%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1687711%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F768810%22%20target%3D%22_blank%22%3E%40marco80760%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%20was%20run%3A%20%22Microsoft.Exchange.Management.Metabase.IISNotInstalledException%3A%20An%20error%20occurred%20while%20trying%20to%20access%20the%20IIS%20metabase.%20Make%20sure%20that%20the%20IIS%20Manager%20is%20installed%20and%20configured%20correctly.%20---%26gt%3B%20System.Runtime.InteropServices.COMException%3A%20Unknown%20error%20(0x80005000)%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EYour%20current%20setup%20(2016%20CU11)%20is%20almost%20two%20years%20old.%20I%20suggest%20you%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fnew-features%2Fbuild-numbers-and-release-dates%3Fview%3Dexchserver-2016%23exchange-server-2016%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eupdate%3C%2FA%3E.%3CBR%20%2F%3EHave%20you%20followed%20all%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FExchange%2Fplan-and-deploy%2Fprerequisites%3Fview%3Dexchserver-2016%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Epre-requisites%3C%2FA%3E%20and%20installed%20all%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fplan-and-deploy%2Fsystem-requirements%3Fview%3Dexchserver-2016%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Erequired%3C%2FA%3E%20software%3F%3CBR%20%2F%3EIt%20looks%20like%20you%20missing%20IIS%20or%20it's%20not%20functioning.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello all,

 

We have 6 exchange servers 2016 CU11 deployed on 2 sites, I need to install 2 new exchange servers in DR site, but I'm getting the following error during the installation:

 

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.IISNotInstalledException: An error occurred while trying to access the IIS metabase. Make sure that the IIS Manager is installed and configured correctly. ---> System.Runtime.InteropServices.COMException: Unknown error (0x80005000)

at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)

at System.DirectoryServices.DirectoryEntry.Exists(String path)

at Microsoft.Exchange.Management.Metabase.IisUtility.CreateIISDirectoryEntry(String iisDirectoryEntryPath, TaskErrorLoggingReThrowDelegate writeError, Object identity, Boolean reThrow)

--- End of inner exception stack trace ---

at Microsoft.Exchange.Management.Metabase.IisUtility.CreateIISDirectoryEntry(String iisDirectoryEntryPath, TaskErrorLoggingReThrowDelegate writeError, Object identity, Boolean reThrow)

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__91_1()

at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".

 

There is an event id 1002 in event viewer (MSExchangeSetup). I uninstalled IIS then reinstall it but no luck. I checked ADSI for any legacy exchange server, but there is no legacy record(s).

 

What else can I check to solve this issue.

 

Thank You

 

 

 

 

2 Replies
Highlighted
Would you please tell us which iis rule u install
Also i can see in the error
Install-AuthCertificate - DomainController $RoleDomainController

Are u sure that the letancy and the reachability between exchange and DC is ok
And last thing, are all DCs replicated
Highlighted

@marco80760 wrote:

 

" was run: "Microsoft.Exchange.Management.Metabase.IISNotInstalledException: An error occurred while trying to access the IIS metabase. Make sure that the IIS Manager is installed and configured correctly. ---> System.Runtime.InteropServices.COMException: Unknown error (0x80005000)


Your current setup (2016 CU11) is almost two years old. I suggest you update.
Have you followed all the pre-requisites and installed all the required software?
It looks like you missing IIS or it's not functioning.