Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition
by Jonas Andersson, Nuno Mota, Mike Pfeiffer
Purging mailboxes
When the move request was introduced in Exchange 2010 SP1, some new functionality was added that you will need to be aware of when managing disconnected mailboxes. When you use the New-MoveRequest cmdlet to move a mailbox from one database to another, the mailbox in the source database is not deleted but is disconnected and marked as SoftDeleted instead. You can check the value of the DisconnectReason property when working with a disconnected mailbox using the Get-MailboxStatistics cmdlet. The Get-DisconnectedMailbox function included earlier in this recipe will also return the value of this property for each disconnected mailbox.
If you move or remove mailboxes frequently, you may end up with hundreds or even thousands ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access