One mailbox that you probably going to identify, it's the eDiscovery Mailbox. Usually it's "name" is something like "DiscoverySearchMailbox{alotofnumbers}@yourdomain.com".
For this one, my previous posted command does not work.
So, to be able to enable auditing for this mailbox, the easiest way that I found is this one:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Catch the mailbox name and add it to a variable | |
$dsm = Get-Mailbox -ResultSize unlimited | Where-Object {$_.name -match "discovery"} | Select-Object alias,displayname,auditenabled | |
#Enable mailbox auditing where identity it's catched from the previous variable | |
Set-Mailbox -Identity $dsm.alias -AuditEnabled $true |
No comments:
Post a Comment