Removing mailboxes doesn't remove from get-mailboxstatistics
I'm trying to do some maintenance on my exchange 2007 server. I ran get-mailboxstatistics and noticed some old mailboxes still exists.
I removed (deleted) these mailboxes. I ran get-mailboxstatistics again and noticed these mailboxes are still there although they no longer exist in the console\ mailbox list.
I ran clean-mailboxdatabase on each database and ran get-mailboxstatistics again and these mailboxes are still there.
How can I remove them from get-mailboxstatistics?ScottL
May 9th, 2012 5:07pm
Hi you can remove it with Remove-Mailbox command.
$Temp = Get-MailboxStatistics | Where{$_.DisplayName -eq User Name}
Remove-Mailbox -Database DB Name -StoreMailboxIdentity $Temp.MailboxGuid
References: Remove-Mailbox
Thanks
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2012 6:47pm
Hello,
Restart SA services.
Thanks,
Simon
May 10th, 2012 4:09am
This worked great. Thank you!ScottL
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 9:27am