Installing Exchange 2019 error during step 7 Mailbox role: Client access server

Martin Surovec 1 Reputation point
2022-03-14T20:41:48.63+00:00

I need to upgrade Exchange 2013 cu22 to Exchange 2019 cu23. Im installing Exchange 2019 to new VM with WS 2022 in domain (Exchange 2013 is running on old server) and im getting this error during Step 7 Mailbox role: Client access server:

Error:
The following error was generated when "$error.Clear();
# Array of module names to unlock
[System.Array] $moduleNames = "AnonymousAuthenticationModule",
"AnonymousIdentification",
"BasicAuthenticationModule",
"CertificateMappingAuthenticationModule",
"CgiModule",
"ConfigurationValidationModule",
"CustomErrorModule",
"DefaultAuthentication",
"DefaultDocumentModule",
"DigestAuthenticationModule",
"DirectoryListingModule",
"DynamicCompressionModule",
"FailedRequestsTracingModule",
"FastCgiModule",
"FileAuthorization",
"FormsAuthentication",
"HttpCacheModule",
"HttpLoggingModule",
"HttpRedirectionModule",
"IsapiFilterModule",
"IsapiModule",
"OutputCache",
"Profile",
"ProtocolSupportModule",
"RequestFilteringModule",
"RoleManager",
"ScriptModule-4.0",
"ServerSideIncludeModule",
"ServiceModel",
"ServiceModel-4.0",
"Session",
"StaticCompressionModule",
"StaticFileModule",
"UrlAuthorization",
"UrlMappingsModule",
"UrlRoutingModule-4.0",
"WindowsAuthentication",
"WindowsAuthenticationModule";
$windir = $env:windir;

      $a = &"$windir\system32\inetsrv\appcmd.exe" "set" "config" "/section:system.webServer/modules" "/lockItem:false"
      Write-ExchangeSetupLog -Info ($a)

      foreach($moduleName in $moduleNames)
      {
          $a = &"$windir\system32\inetsrv\appcmd.exe" "set" "config" "/section:system.webServer/modules" "/.[name=`'$moduleName`'].lockItem:false"
          Write-ExchangeSetupLog -Info ($a)
      }
    " was run: "System.Management.Automation.ParameterBindingException: Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Message'. Specified method is not supported. ---> System.NotSupportedException: Specified method is not supported.

at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)
--- End of inner exception stack trace ---
at System.Management.Automation.CmdletParameterBinderController.VerifyArgumentsProcessed(ParameterBindingException originalBindingException)
at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection1 arguments) at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection1 arguments)
at System.Management.Automation.CommandProcessor.BindCommandLineParameters()
at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)
at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)".

I tried to search this error, but I cannot find anything.

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
519 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,403 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Aaron Xue-MSFT 2,586 Reputation points Microsoft Vendor
    2022-03-15T01:37:46.687+00:00

    Hi @Martin Surovec ,

    Im installing Exchange 2019 to new VM with WS 2022 in domain

    Exchange server 2019 is not supported on windows server 2022.

    Based on the official document, the Exchange server 2019 only supports windows server 2019.

    183091-2.png

    https://learn.microsoft.com/en-us/exchange/plan-and-deploy/supportability-matrix?view=exchserver-2019


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Aaron Xue-MSFT 2,586 Reputation points Microsoft Vendor
    2022-03-18T08:50:06.333+00:00

    Hi @Martin Surovec ,

    According to this error
    Array of module names to unlock[System.Array] $moduleNames = "AnonymousAuthenticationModule" and so on, please follow below steps to unlock the “AnonymousAuthenticationModule” .

    Open IIS Manager in DC
    Click the server name in the tree on the left
    Right hand pane, Management section, double click Configuration Editor
    184455-1.png

    At the top, choose the section system.webServer/security/authentication/anonymousAuthentication
    Right hand pane, click Unlock Section
    184400-2.png

    184415-4.png

    I think you may need to unlock all module the error has listed.
    184501-5.png
    Install the Exchange server 2019 after all the modules has been unlocked.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.