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
Solved

removing exchange 2010 mailbox

Posted on 2016-08-30
3
36 Views
Last Modified: 2016-09-21
Hello Experts.

I seem to be in a pickle here. I deleted a users AD account, after i tried to remove his mailbox from Exchange 2010, it gave error message that it could not locate desired user in AD. I now know i should've removed his mailbox first before deleting his AD accout. Is there a way of forcing exchange 2010 to remove a mailbox in this case. Please let me know.
0
Comment
Question by:Newguy 123
3 Comments
 
LVL 5

Accepted Solution

by:
TechieMD earned 500 total points
ID: 41777123
In the Exchange Management Console, right-click and select disable mailbox or in the Exchange Management Shell:

Disable-Mailbox -Identity mailboxname -Confirm:$false


That should detach it from the AD object and make it available to delete.
0
 
LVL 25

Expert Comment

by:-MAS
ID: 41777132
Hi,
Please run the below command on the database where this user mailbox exists
Clean-MailboxDatabase <database1>

Open in new window

If you dont know the database name run this
Get-mailboxdatabase | Clean-MailboxDatabase

Open in new window

After this you can see the mailbox as disconnected

Thanks
MAS
1
 
LVL 1

Expert Comment

by:Mre Martin
ID: 41777595
Listing all disconnect mailbox;

Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid

Removing :

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

Remove all:

$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In-place Upgrading Dirsync to Azure AD Connect
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video discusses moving either the default database or any database to a new volume.

790 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