Configuring Settings for On-Premises Exchange
Enabling Mailbox Auditing for Exchange Server 2016
- Start the Windows PowerShell.
-
Enable mailbox logging and configure auditing of user mailboxes for your on-premises Exchange organization by running the following commands:
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditLogAgeLimit 365 -AuditEnabled $true
Set-AdminAuditLogConfig -AdminAuditLogEnabled $true -AdminAuditLogCmdlets * -AdminAuditLogParameters * -AdminAuditLogExcludedCmdlets $null -Force -LogLevel Verbose -TestCmdletLoggingEnabled $true -AdminAuditLogAgeLimit 365
-
Specify activity to be audited. Run commands:
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditOwner Update, Move, MoveToDeletedItems, SoftDelete, HardDelete, Create, MailboxLogin
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditDelegate Update,Move,Create,MoveToDeletedItems,SoftDelete,HardDelete,FolderBind,SendAs,SendOnBehalf
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditAdmin Update, Move, MoveToDeletedItems, SoftDelete, HardDelete, FolderBind, SendAs, SendOnBehalf, Create,Copy,MessageBind
Enabling Mailbox Auditing for Exchange Server 2019
- Start the Windows PowerShell.
-
Enable mailbox logging and configure auditing of user mailboxes for your on-premises Exchange organization by running the following commands:
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditLogAgeLimit 365 -AuditEnabled $true
Set-AdminAuditLogConfig -AdminAuditLogEnabled $true -AdminAuditLogCmdlets * -AdminAuditLogParameters * -AdminAuditLogExcludedCmdlets $null -Force -LogLevel Verbose -TestCmdletLoggingEnabled $true -AdminAuditLogAgeLimit 365
-
Specify activity to be audited. Run commands:
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditOwner Update, Move, MoveToDeletedItems, SoftDelete, HardDelete, Create, UpdateFolderPermissions, UpdateInboxRules, UpdateCalendarDelegation, MailboxLogin
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditDelegate Update,Move,Create,MoveToDeletedItems,SoftDelete,HardDelete,FolderBind,SendAs,SendOnBehalf
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -AuditAdmin Update, Move, MoveToDeletedItems, SoftDelete, HardDelete, FolderBind, SendAs, SendOnBehalf, Create, UpdateFolderPermissions, UpdateInboxRules, UpdateCalendarDelegation,Copy,MessageBind
Granting Permissions
-
Navigate to Exchange admin center / Permissions.
-
Assign the Compliance Management and Organization Management admin role groups to the collector account (the one Cygna Auditor can use to collect data from Exchange).
Enabling PowerShell Authentication
-
Navigate to Exchange admin center / Servers and select Virtual directories.
-
Configure as follows:
-
Select servers: All servers
-
Select type: PowerShell
-
-
Select PowerShell (Default Web Site), proceed to the Authentication tab, and enable Basic authentication.
Continue reading: