In Exchange Server environments, the Audit Log mailbox is a special system mailbox where administrative and audit records are stored. After a new Exchange Server installation, this mailbox must also be moved to the new server. Otherwise, the audit log records will remain on the old server.
The process of moving the Audit Log mailbox can be managed using the following PowerShell commands.
Run Set-ADServerSettings cmdlet, including the -ViewEntireForest parameter. It will let you view the objects in the entire forest. Next, get the audit log mailbox.
Set-ADServerSettings -ViewEntireForest $true
Listing the Audit Log Mailbox
First, the Audit Log mailbox in the environment is checked:
Get-Mailbox –Auditlog
Moving the Audit Log Mailbox
The New-MoveRequest cmdlet is used to move the Audit Log mailbox to a new Exchange Server or a new mailbox database
Get-Mailbox –Auditlog | New-MoveRequest -TargetDatabase “NewDatabase”
Check the Transport Status
Get-Mailbox –Auditlog | Get-MoveRequest
Get-MoveRequest | Get-MoveRequestStatistics
Clearing Completed Transport Records
Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest -Confirm:$False