Forum Discussion
Enable Audit via powershell
- Aug 10, 2017
Already there are numerous PowerShell scripts are available for this need.
Check out the article below to know how to enable Mailbox auditing.
https://technet.microsoft.com/en-us/library/dn879651.aspx?f=255&MSPPError=-2147217396
Is this for Exchange Online Mailbox auditing?
- Robert LuckAug 10, 2017Iron Contributor
Already there are numerous PowerShell scripts are available for this need.
Check out the article below to know how to enable Mailbox auditing.
https://technet.microsoft.com/en-us/library/dn879651.aspx?f=255&MSPPError=-2147217396
- Marvin OcoAug 11, 2017Iron Contributor
this is the script that we use to enable audit, is there a way we can just target enabling disabled users without going through all users (including enabled users)?
Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | Set-Mailbox -AuditEnabled $true
Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | Set-Mailbox -AuditOwner MailboxLogin,HardDelete,SoftDelete,Create,Move,MoveToDeletedItems,Update
- TonyRedmondAug 12, 2017MVP
Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | ? {$_.AuditEnabled -eq $False} | Set-Mailbox -AuditEnabled $True -AuditOwner MailboxLogin,HardDelete,SoftDelete,Create,Move,MoveToDeletedItems,Update