I’m trying to enable automatic auditing of mailboxes upon creation and I read on some posts regarding the scripting agent config.xml. In the install directory of one of my Exchange 2013 SP1 boxes, I found the “scriptingagentconfig.xml.sample” file and renamed it to “scriptingagentconfig.xml”. I see that there is a section for auditing – “cmdlets=”new-mailbox”":
<Feature Name="Auditing" Cmdlets="new-mailbox">
<ApiCall Name="Validate">
#parameter list:
#param([ProvisioningHandler]$provisioningHandler, [IConfigurable]$readOnlyIConfigurable)
$newObjectGuid = $readOnlyIConfigurable.Guid.ToString();
</ApiCall>
<ApiCall Name="OnComplete">
#parameter list:
#param([ProvisioningHandler]$provisioningHandler, [bool]$succeeded, [Exception]$exception)
if($succeeded)
{
WriteToSQL($newObjectGuid);
}
</ApiCall>
</Feature>
Does this mean I just need to push this “xml” file to all my Exchange 2013 SP1 boxes and run “Enable-cmdletextensionagent”???? Guess I'm wondering if I can use the "sample" xml file or do I create a new one???
Reference posts:
http://exchangeserverpro.com/automatically-enabled-mailbox-audit-logging-exchange-server/