Skip to Main Content
Exchange Server Cookbook
book

Exchange Server Cookbook

by Paul Robichaux, Missy Koslosky, Devin L. Ganger
June 2005
Intermediate to advanced content levelIntermediate to advanced
464 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Exchange Server Cookbook

6.13. Enumerating Connected Mailboxes in a Database

Problem

You want to find out which mailboxes are in a specific mailbox database.

Solution

Using a graphical user interface

  1. Launch the Exchange System Manager (Exchange System Manager.msc).

  2. In the left pane, expand the appropriate Administrative Groups container, and then expand the Servers container.

  3. Expand the server that contains the target database, then expand the parent SG.

  4. Expand the mailbox database whose contents you want to see.

  5. Select the Mailboxes node in the left pane of ESM. All mailboxes will be listed in the right pane.

  6. If you want to save the list of mailboxes to disk as either an ASCII or comma-separated value file, right-click the Mailboxes folder and select Export List, then specify where you want the file saved.

Using a command-line interface

The following command lists all the mailboxes in a mailbox store:

> dsquery * forestroot -scope subtree -filter "(homeMDB=<mailboxStoreDN>")

For example:

> dsquery * forestroot -scope subtree -filter "(homeMDB=CN=First Storage Group,
    CN=InformationStore,CN=BATMAN,CN=Servers, CN=First Administrative Group, 
    CN=Administrative Groups,CN=Robichaux and Associates, CN=Microsoft
    Exchange,CN=Services,CN=Configuration,DC=robichaux,DC=net)"

However, this query runs much faster on Windows Server 2003 Active Directory domains, because Windows Server 2003 can do implict indexing of multilinked values. If you're using Windows 2000 Active Directory, you can get the same data (in a slightly different ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010: Best Practices

Microsoft® Exchange Server 2010: Best Practices

Siegfried Jagott, Joel Stidley
Microsoft® Exchange Server 2003 Unleashed

Microsoft® Exchange Server 2003 Unleashed

Rand H. Morimoto - MCSE, Joe R. Coca, CISSP Kenton Gardinier - MCSE MCSA, MCSA Michael Noel - MCSE+I
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 0596007175Errata Page