Solved

How to remove or disable mailbox

Posted on 2009-05-09
1
584 Views
Last Modified: 2012-05-06
how can I disable or remove a mailbox that deleted from the domain controller ? normaly when I want do this I receive an error !

Remove-Mailbox : The operation could not be performed because object 'user' could not be found on domain contro
'ads01.domain.com'.
At line:1 char:15
+ Remove-Mailbox  <<<< -Identity caltest
0
Comment
Question by:Mapnaturbine
1 Comment
 
LVL 1

Accepted Solution

by:
sujmatp earned 125 total points
ID: 24347134
IF the account is deleted from AD, then you should see the mailbox in the disconnected mailbox after running this command in management shell (clean-mailboxdatabase).

If you want to delete the disconnected mailbox the use this command

Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false

PS: To get the MailboxGuid use the following command
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question