Tags

,


Sometimes you might see all the moved mailboxes show up in disconnected mailboxes if you are with later Exchange Server 2010 SP1. This is the default behaviour from Exchange Server 2010 SP1 called Soft Deleted mailboxes.

Soft-Deleted Mailboxes:

When mailboxes are moved from an Exchange 2010 SP1 database to any other database, Exchange doesn’t fully delete the mailbox from the source database immediately upon completion of the move. Instead, the mailbox in the source mailbox database is switched to a soft-deleted state. Mailbox data can be accessed during a mailbox restore operation using the MailboxRestoreRequest cmdlet set. The soft-deleted mailboxes are retained in the source database until either the deleted mailbox retention period expires or you use the Remove-StoreMailbox cmdlet to purge the mailbox.

Understanding Move Requests Click here

You can safely ignore these mailboxes once you confirm that they are soft deleted mailboxes.

How can you differentiate the disabled and soft deleted mailboxes? Use below commands

Disabled mailboxes:

Get-MailboxStatistics –Database “Name” | Where-Object {$_.DisconnectReason –eq “Disabled”}

Soft-Deleted:

Get-MailboxStatistics –Database “Name” | Where-Object {$_.DisconnectReason –eq “Softdeleted”}

And if you want to purge only soft deleted mailboxes from the particular database use below command:

Get-MailboxStatistics –Database “Name” | Where-Object {$_.DisconnectReason –eq “Softdeleted”} | ForEach {Remove-StoreMailbox –Database $_.database –identity $_.mailboxguid –MailboxState Softdeleted

Thanks for reading and post your comments, Cheers!!!

About these ads