Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 8719

How do you configure "ScriptAgentConfig.xml" for automatic enabling of mailbox auditing for new mailboxes?

$
0
0

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/


Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>