The following error was displayed when creating a new mail box after enabling the Exchange Scripting Agent:
The following error occurred during validation in Agent ‘Scripting Agent:’ ‘The name must follow the pattern as: MY-DIY-[Your Alias]-[Free string less than 32 characters]’
The Change Auditor agent requires the Exchange Scripting Agent and will enable it if it is not already enabled on the Excgange server. Part of the process of enabling the Scripting agent (whether manually or by the Change Auditor agent) involves renaming the file C:\Program Files\Microsoft\Exchange Server\V15\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml.sample to “..\ScriptingAgentConfig.xml”. Renaming enables some pre-configured settings contained in this file that may cause some restrictions in your Exchange environment.
Example:
<Feature Name="Auditing" Cmdlets="new-mailbox">
<ApiCall Name="Validate">
The ScriptingAgentConfig.xml file is created when the Exchange in installed on the server, it is important to review this file before enabling the Scripting agent.
When the Scripting agent is enabled (XML file is renamed), any other Cmdlet that is executed will first check this file for additional parameters to include in the execution, so to avoid unpredictable results, it is best to first review and or disable any of the unwanted parameters or start with a blank ScriptingAgentConfig.xml file.
Sometimes, there is a sample piece of code left in the XML file if you've copied the .sample file that can be safely commented out:
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center