purge mailbox
in "disconnected mailbox" i have three entry for the same user and i have , for same user, mailbox active. How to "purge" the disconnected ? without remove the functional ?
September 15th, 2011 12:29pm
Not sure what you mean by remove without remove the function. The mailbox is in disconnected state, it has no more "function" per se.
However;
Get the maiboxguid
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
Then delete.
Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false
James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2011 5:46pm
Hi,
You can try this:
PS>$store= Get-MailboxDatabase "<server_name>\<Storage_Group_Name>\<Mailbox_Database_name>"
PS>Get-MailboxStatistics -database $store | where {$_.disconnectdate -ne $null} | foreach {remove-mailbox -database $store -storemailboxidentity $_.mailboxguid}
Best Regards!
September 16th, 2011 9:25am