Forum Discussion
MaxMDF3
Apr 19, 2023Copper Contributor
Exchange 2019 switch to empty DB
Good morning, I have my exchange server 2019 on win2019 server. The user's mailbox database, .edb file is too big (more than 30GB). I need to archive this database and start with a new empty database...
Andres-Bohren
Apr 19, 2023Iron Contributor
Hi MaxMDF3
Check your "Whitespace". Remember Exchange does not release available Mailbox Space. You have to move to a new Mailbox in Order to end up with a smaller Database
Get-MailboxDatabase -Status | Select-Object Name, DatabaseSize, AvailableNewMailboxSpace | Format-Table -AutoSize
Create a new Mailbox Database and use the New-MoveRequest commandlet to move the Mailboxes to a new Mailbox Database.
Get-Mailbox -Database OldDatabase
New-MoveRequest -Identity <Identity> -TargetDatabase "NewDB"
Regards
Andres