Solved

Locating disconnected mailbox

Posted on 2011-03-15
5
514 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
This video discusses moving either the default database or any database to a new volume.

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now