?
Solved

How to remove or disable mailbox

Posted on 2009-05-09
1
Medium Priority
?
590 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
sujmatp earned 375 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
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 …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

770 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