Exchange 2013 install fails when Scripting Agent is enabled in organization
Found a bug in the Exchange 2013 install, similar to 2010. It appears that when the Scripting Agent is enabled in your Exchange org (via Enable-CmdletExtensionAgent “Scripting Agent”) the Exchange 2013 installer will fail with the error below.
The following error was generated when “$error.Clear();
” was run: “Provisioning layer initialization failed: ‘”Scripting Agent initialization failed: “File is not found: ‘E:\Program Files\Microsoft\Exchange Server\V15\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml’.””‘”.
There are a few ways to work around the issue.
- Disable the Scripting Agent extension
Disable-CmdletExtensionAgent “Scripting Agent”
- Copy the ScriptingAgentConfig.xml file to the “(intended install drive letter):\Program Files\Microsoft\Exchange Server\V15\Bin\CmdletExtensionAgents” folder on the new server and go through with the install as normal.
I’ve tried copying the current ScriptingAgentConfig.xml file to the (install media)\serverroles\common\cmdletextensionagents folder, but it doesn’t seem to get moved over during the install. That would be ideal in my situation as I don’t edit the config often, if at all.