Link to home
Create AccountLog in
Exchange

Exchange

--

Questions

--

Followers

Top Experts

Avatar of Tamooz
Tamooz🇮🇱

Delete Mailbox for deleted in AD user (Exchange 2010)
Hi All,

System :
Server 2008 as DC
Exchange Server 2010 as mail server

I have a little mistake, i deleted user in AD before deleting mailbox. Now this mailbox is not in mailboxes list and not in Disconnected mailboxes, but i can see this mailbox  from PowerShell. If i try to delete this mailbox i have this message :

[PS] C:\Windows\system32>Remove-Mailbox -Identity domain\user
The operation couldn't be performed because object 'domain\user' couldn't be found on 'dc.domain.yes'.
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 2F1637E6,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox
Because this user is deleted from AD.

Please help me to delete this mailbox from Exchange 2010 without restore object(user) to AD.

Thanks!

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


SOLUTION
Avatar of setasoujirosetasoujiro🇧🇪

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Yagya ShreeYagya Shree🇮🇳

In the Exchange Management Console, right-click and select disable mailbox or in the Exchange Management Shell, use the Disable-Mailbox cmdlet:

Disable-Mailbox -Identity mailboxname -Confirm:$false

Avatar of TamoozTamooz🇮🇱

ASKER

30 days?

Avatar of setasoujirosetasoujiro🇧🇪

yes

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of TamoozTamooz🇮🇱

ASKER

Disable-Mailbox -Identity mailboxname -Confirm:$false
It's steel check in AD, i have this message

[PS] C:\Windows\system32>Disable-Mailbox -Identity mailboxname -Confirm:$false
The operation couldn't be performed because object 'mailboxname' couldn't be found on 'DC.domain.yes'.
    + CategoryInfo          : NotSpecified: (0:Int32) [Disable-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : DCC65151,Microsoft.Exchange.Management.RecipientTasks.DisableMailbox

Avatar of TamoozTamooz🇮🇱

ASKER

So, i have no way to delete this mailbox before the end of retention period?

ASKER CERTIFIED SOLUTION
Avatar of SubSunSubSun🇮🇳

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of TamoozTamooz🇮🇱

ASKER

Thank you Subsun! It's worked.

1) Clean DB
Clean-MailboxDatabase DB4

2) Check the Identity number of mailbox
Get-MailboxStatistics -Database DB4 | Select DisplayName, Identity | Sort-Object DisplayName  | Format-Table

3) Remove mailbox
Remove-StoreMailbox -Database DB4 -Identity "457465d4-6245-48f4-ab45-98573798cf0f" -MailboxState Disabled

Thank you All for help!!!

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of TamoozTamooz🇮🇱

ASKER

Thanks!!!
Exchange

Exchange

--

Questions

--

Followers

Top Experts

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.