Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


windows:servers:exchange:mailbox_move

Move mailboxes between databases in exchange

Create new database
New-MailboxDatabase -Name "db02" -EdbFilePath "D:\Databases\db02\db02.edb" -LogFolderPath "E:\Logs\db02" -Server "exchange01.example.com"
List all mailboxes in database
Get-Mailbox 
Get-Mailbox -Database db01 -Arbitration | get-mailboxstatistics | select displayname, totalitemsize, database
Get-Mailbox -Database db01 –Archive | get-mailboxstatistics | select displayname, totalitemsize, database
Get-Mailbox -Filter { WindowsEmailAddress -like "*@example.com" }
New-MoveRequest mailboxname -TargetDatabase db02
get-moverequest | get-moverequeststatistics
Get-MoveRequest | where {$_.status -eq “Completed”} | Remove-MoveRequest

Discussion

Enter your comment:
K L Z Y Q
 
windows/servers/exchange/mailbox_move.txt · Last modified: 2019/01/17 08:34 by tplecko