Forum Discussion
Removing Extra MDB
Hello kuystorj,
First of all run this to get a list of all arbitrary mailboxes:-
Set-ADServerSettings -ViewEntireForest $true
Get-Mailbox -Arbitration | FL name,database,displayname,servername
If you see any mailbox on the databases that you wish to remove, move those mailboxes to the database were you are consolidating all the mailboxes, using below:-
Get-Mailbox –Database “Source-DB-NAME” –arbitration | New-MoveRequest –TargetDatabase “Destination-DB-NAME”
To check the status of the migration use below:-
Get-MoveRequest | Get-MoveRequestStatistics | select DisplayName, StatusDetail, *Size, *Percent* | ft
Now to remove the database run below:-
Remove-MailboxDatabase -Identity MailboxDatabaseName
A warning might appear saying that you would have to delete the edb manually. Once done feel free to delete the edb and log files folder.
Deepak