Automatoin of Mailbox Audit logging(Audit delegate) only for one organization unit

Hi Team

Is there any specific method where we can enable Mailbox Audit logging (Audit delegate) only for
one organization unit automatically when new mailboxes are created under that OU.

Example :
When i create a new mailbox under that OU automatically for that mailbox Audit logging(Audit delegate) should be enabled.
Exchange Version - Exchange 2010 SP3 Ru7
I think there is a way through modifying autoprovisioning XML values but i couldn't make any idea out of it.

Is there any easier way to achieve this task.
Any help with regards to the same is much appreciated.

May 7th, 2015 9:10am

Hi ,

Please check this link and this may help you .

http://exchangeserverpro.com/automatically-enabled-mailbox-audit-logging-exchange-server/

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2015 9:13am

Hi,

Try to  edit those command in the link above to get the user in that OU

If ($succeeded) {$Alias= $provisioningHandler.UserSpecifiedParameters["Alias"]

$mailbox = Get-Mailbox $Alias -OrganizationalUnit OU Set-Mailbox $mailbox -AuditEnabled:$true }


Best Re

May 7th, 2015 10:43pm

Thanks Nithya and Lynn

I created the above XML TAG and trying it

<Feature Name="MailboxProvisioning" Cmdlets="New-Mailbox,Enable-Mailbox">
<ApiCall Name="OnComplete">
If ($Succeeded)
{
$Alias = $ProvisioningHandler.UserSpecifiedParameters["alias"]
$mailbox = Get-Mailbox $Alias -OrganizationalUnit OU
Set-Mailbox $mailbox -AuditEnabled:$true
}
</ApiCall>
</Feature>
</Configuration> .

.Copied them to all the Exchange servers .After making the below changes I tried creating a new mailbox but this Mailbox Audit value is not getting set to true.
I'm missing something and stuck at this point

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2015 11:43pm

This commandlet extension agents doesn't seems to be much reliable and not consistent.

We have created a script and scheduled to run on a week to enable on all the newly created MBX's for that OU

May 10th, 2015 2:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics