Solved

removing exchange 2010 mailbox

Posted on 2016-08-30
3
32 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

803 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