Verifying Event Sink Registration


Topic Last Modified: 2006-06-29

This topic discusses how to use the MailboxStatus.vbs script to check the status of each registered resource mailbox.

The MailboxStatus.vbs script uses Web Distributed Authoring and Versioning (WebDAV) to access the Exchange server. 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 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

You can verify the registration status of individual resource mailboxes by using the MailboxStatus.vbs script, which is located in the install folder. Although it is not required for you to have Exchange Full Administrator permissions to run this script, you must have read access to the resource mailboxes you want to run this script on.

This script can be run remotely.

You can also use this script to obtain a list of unprocessed meeting requests for a set of resource mailboxes. The output is in XML, with one XML node per mailbox. The maximum number of unprocessed items the script will return is set to 500. To change this default, open the MailboxStatus.vbs in a text editor and change the following line, located at the start of the script:

CONST MAX_ROWS = "500"   
If this script is run on the Exchange server, you must add the name of the server to the Internet Explorer trusted list. For instructions about how to add the server name to the trusted list, see Listing Registered Mailboxes.

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

cscript [//NOLOGO] MailboxStatus.vbs {/F:filename | /} [I] [/DEBUG]



Suppresses the Windows Script Host version and copyright information.


The name of the text file that contains the primary SMTP addresses of the mailboxes you want to verify. Use this switch when verifying multiple mailboxes. You must create the text file before you use this script. If the text file is not located in the current directory, preface the file name with the path of the directory where the text file is located.


The primary SMTP address of the mailbox for which you want to verify a registration. Use this switch to verify registrations for single mailboxes.


Reports unprocessed meeting items in the Inbox for each registered resource mailbox.


Outputs verbose debug information that you can use to diagnose issues.

You must specify either the /F or /M switch.

The following table contains the possible values for RegistrationStatus, which is the parameter that indicates whether the registration was successful.

Values of the RegistrationStatus parameter

Value Definition


Mailbox is not found.


Mailbox is not registered.


Mailbox is registered.


Registration status cannot be determined.

For example, the following script was run on server 1, which contains three mailboxes:

cscript MailboxStatus.vbs /S:server1

The following results are indicated in the output:

  • The resource is not registered with Auto Accept Agent as indicated by its RegistrationStatus value of 0, and the RegistrationTime field being present (in UTC format).

  • The resource is registered as indicated by its RegistrationStatus value of 1.

  • An error occurred when attempting to determine the registration status of, as indicated by its RegistrationStatus value of 2.

  <CurrentTime>10/9/2003 4:54:29 PM</CurrentTime> 
 <Mailbox EMailAddress="">
  <RegistrationTime /> 
 <Mailbox EMailAddress="">
  <RegistrationTime>10/9/2003 2:00:39 PM </RegistrationTime > 
  <Mailbox EMailAddress="">
  <RegistrationTime /> 

Community Additions