Solved

How to remove or disable mailbox

Posted on 2009-05-09
1
581 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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
how to add IIS SMTP to handle application/Scanner relays into office 365.

943 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now