Solved

Locating disconnected mailbox

Posted on 2011-03-15
5
520 Views
Last Modified: 2012-05-11
Hi

Running Exchange 2007 server. We have servers in EMEA, APAC and US; servers are prefixed with their region names (e.g. emeambx1). Sometimes, our Helpdesk accidentally delete AD accounts and the mailbox is in disconnected state and I need to find it.

We have five Exchange 2007 mailbox servers per region, so finding the disconnected is work intensive at the moment.

As an example, I need to find a disconnected mailbox in EMEA. I think we need to run clean-mailbox on the servers first? Is this true? Is there any 'outage' associated with this, or is it purely related seeing disconnected mailboxes only?

Therefore, my questions are:

1. I need to run clean mailbox on all the EMEA servers only
2. I then need to find a disconnected mailbox with the display name "John Smith" which is on an EMEA server

Does anyone know the Powershell I'd run to find that?
0
Comment
Question by:kam_uk
  • 3
5 Comments
 
LVL 13

Expert Comment

by:Felix Leven
ID: 35142450
this shows disconnected mailboxes:
Get-MailboxStatistics -Server | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate
0
 
LVL 3

Author Comment

by:kam_uk
ID: 35142466
I need to find the disconnected mailbox with display name "John Smith", i.e need to know what server it's on. Running the command above will just give me all the disconnected mailboxes, which is not what I'm after?
0
 
LVL 13

Expert Comment

by:Felix Leven
ID: 35142501
Get-MailboxStatistics -Server | where { $_.DisconnectDate -ne $null and DisplayName -eq John Smith  } | select DisplayName,DisconnectDate
0
 
LVL 13

Expert Comment

by:Felix Leven
ID: 35142518
-and
0
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 35142827
$servers = Get-MailboxServer | ? {$_.name -like "EMEA&*"}
$servers | Get-Mailboxstatistics -Server $_.name | ?{ $_.DisconnectDate -ne $null -and  DisplayName -eq "John Smith"} | fl DisplayName,Database,DisconnectDate
0

Featured Post

Industry Leaders: 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

Find out what you should include to make the best professional email signature for your organization.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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