Export (0) Print
Expand All

Listing Registered Mailboxes

 

Topic Last Modified: 2006-06-29

This topic discusses how to use ListMailboxes.vbs script to list registered resource mailboxes.

importantImportant:
The ListMailboxes.vbs script uses Web Distributed Authoring and Versioning (WebDAV) to access the Exchange Server. Important   For the script to work, WebDAV must be enabled on the Exchange server. To disable WebDAV, refer to the Exchange Server 2003 Security Hardening Guide download page at http://go.microsoft.com/fwlink/?linkid=37804. When WebDAV is disabled, the script will not work. Additionally, the script is based on the default Exchange virtual directory naming (/exchange). If you have a different mailbox store virtual directory name, the script will not work. For more information about WebDAV, see the WebDAV Reference at http://go.microsoft.com/fwlink/?linkid=64698.

After you have registered mailboxes, use the ListMailboxes.vbs script to obtain a list of the registered mailboxes. This script obtains the registration information directly from the store events folder located in each mailbox store on the server. You must have Exchange Full Administrator permissions to run this script.

noteNote:
This script can be run remotely.

The maximum number of mailboxes about which the script will return information is set to 500. To change this default value, open the script in a text editor and change the following line, located at the beginning of the script:

CONST MAX_ROWS = "500"
importantImportant:
   If this script is run on the Exchange server, you must add the name of the server to the Internet Explorer trusted list.
To add a server to the Internet Explorer trusted list
  1. Open Internet Explorer.

  2. On the Tools menu, click Internet Options.

  3. On the Security tab, click Local intranet, and then click Sites. Click Advanced.

  4. In the Add this Web site to the zone text box, type the name of your server, for example, http://servername. Click OK, and then apply your changes.

noteNote:
For more information about Internet Explorer security settings, see the Internet Explorer Help.

The output of this script can be piped to a file and used as input for the MailboxStatus.vbs script, by using the /F option for that script.

To use ListMailboxes.vbs, type the following at the command prompt:

Cscript [//NOLOGO] ListMailboxes.vbs {/F:filename | /S:servername} [/DEBUG]

Where:

//NOLOGO

Suppresses the Windows Script Host version and copyright information.

/F

The name of the text file that contains the names of the servers (one per line) for which you want to list mailboxes. You must create the text file before you use this script. See Registering Event Sink on Mailboxes for an example of a text file.

/S

The name of the server that contains the mailboxes that you want to list.

/DEBUG

Outputs verbose debug information that you can use for diagnosis.

noteNote:
You must specify either the /F or /S switch.
 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft