Missing mailbox within Exchange Management Console
After running the following command in the Exchange Management Shell (EMS),
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(KB)";expression={$_.TotalItemSize.Value.ToKB()}},ItemCount
it reports a mailbox that I cannot find. The user account is not in Active Directory and I can't find the mailbox in the Exchange Management Console (EMC).
When attempting to delete the mailbox using EMS, I get an "Object could not be found," message.
I'm pretty sure that I already removed this mailbox in EMC earlier, but apparently I didn't if EMS is finding it...
Any thoughts on removing this mailbox?
Thanks
May 21st, 2010 5:11pm
Is the mailbox in the "Disconnected Mailbox" (if the user was deleted today you will have to run a command to see it here, or wait till 3am for the defrag to go thru)
You could go through the adsiedit.msc in the dc and see the mailbox there and delete it. But this would be a last resort.
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2010 5:21pm
Run a clean-mailboxdatabase on all your databases and you should see that mailbox marked as disconnected. The mailbox will be purge after the mailbox retention time limit has passed if you have one set.Exchange & Powershell Geek
MCITP: Enterprise Messaging Administrator
MCITP: Enterprise Messaging Administrator 2010
May 21st, 2010 5:25pm
hi,
This may be a disabled/disconnected mailbox which you can find using
get-mailboxstatistics -Server 'Your Mailbox Server'| Where{$_.DisconnectDate -ne $null}|FL DisplayName
This will show u all disabled mailboxes.
you can delete that mailbox using these 2 powershell lines of code:
$Mailbox = get-mailboxstatistics -Server 'Your Mailbox Server'| Where{($_.DisconnectDate -ne $null) -and (_$.DisplayName -eq 'UserDisplayName'}
remove-mailbox -database $Mailbox.database -storemailboxidentity $Mailbox.mailboxguid
Note: Dont forget to put your mailbox server name and user display Name.
Hope this helps u.
Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2010 5:27pm
This worked, thanks!!!
May 21st, 2010 5:40pm