Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

removing exchange 2010 mailbox

Posted on 2016-08-30
3
Medium Priority
?
45 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
[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
3 Comments
 
LVL 5

Accepted Solution

by:
TechieMD earned 1000 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 27

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

618 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