Scripting Agent initialization failed

Issue

When installing an Exchange Server 2016 CU11 server into an Exchange 2010 organisation I encountered the following error during Step 6: Management Tools.

2

Error:

The following error was generated when “$error.Clear();
Set-WERRegistryMarkers;
” was run: “Microsoft.Exchange.Provisioning.ProvisioningBrokerException: Provisioning layer initialization failed: ‘”Scripting Agent initialization failed: “File is not found: ‘E:\Exchange\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml’.””‘ —> Microsoft.Exchange.Provisioning.ProvisioningException: “Scripting Agent initialization failed: “File is not found: ‘E:\Exchange\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml’.”” —> System.IO.FileNotFoundException: “File is not found: ‘E:\Exchange\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml’.”
at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentConfiguration.Initialize(String xmlConfigPath)
at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentConfiguration..ctor(String xmlConfigPath)
— End of inner exception stack trace —
at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentConfiguration..ctor(String xmlConfigPath)
at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentClassFactory.get_Configuration()
at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentClassFactory.GetSupportedCmdlets()
at Microsoft.Exchange.Provisioning.ProvisioningBroker.BuildHandlerLookupTable(CmdletExtensionAgent[] enabledAgents, Exception& ex)
— End of inner exception stack trace —
at Microsoft.Exchange.Provisioning.ProvisioningLayer.GetProvisioningHandlersImpl(Task task)
at Microsoft.Exchange.Provisioning.ProvisioningLayer.GetProvisioningHandlers(Task task)
at Microsoft.Exchange.Configuration.Tasks.Task.<BeginProcessing>b__83_0()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeNonRetryableFunc(Action func, Boolean terminatePipelineIfFailed)”.

Investigation

The Exchange Scripting Agent is enabled in Exchange Server 2010, and the Exchange Server 2016 setup is expecting to find the file ScriptingAgentConfig.xml in the Exchange 2016 installation location.

Resolution

I copied ScriptingAgentConfig.xml from one of the Exchange 2010 servers to the Exchange 2016 server.

Exchange Server 2010 default location:

C:\Program Files\Microsoft\Exchange Server\V14\Bin\CmdletExtensionAgents

Exchange Server 2016 default location:

C:\Program Files\Microsoft\Exchange Server\V15\Bin\CmdletExtensionAgents

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s