Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

importantImportant:
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 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.

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.

noteNote:
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"   
importantImportant:
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 | /M:mailbox@example.com} [I] [/DEBUG]

Where:

//NOLOGO

Suppresses the Windows Script Host version and copyright information.

/F

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.

/M

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

/I

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

/DEBUG

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

noteNote:
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

-1

Mailbox is not found.

0

Mailbox is not registered.

1

Mailbox is registered.

2

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 conf_room1@example.com 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 conf_room2@example.com is registered as indicated by its RegistrationStatus value of 1.
  • An error occurred when attempting to determine the registration status of conf_room3@example.com, as indicated by its RegistrationStatus value of 2.
<MailboxStatus>
   <Summary>
  <CurrentTime>10/9/2003 4:54:29 PM</CurrentTime> 
  <MailboxCount>3</MailboxCount> 
  </Summary>
 <Mailbox EMailAddress="conf_room1@example.com">
  <Server>SERVER1</Server> 
  <RegistrationStatus>0</RegistrationStatus> 
  <RegistrationTime /> 
  </Mailbox>
 <Mailbox EMailAddress="conf_room2@example.com">
  <Server>SERVER1</Server> 
  <RegistrationStatus>1</RegistrationStatus> 
  <RegistrationTime>10/9/2003 2:00:39 PM </RegistrationTime > 
  </Mailbox>
  <Mailbox EMailAddress="conf_room3@example.com">
  <Server>SERVER1</Server> 
  <RegistrationStatus>2</RegistrationStatus> 
  <RegistrationTime /> 
  </Mailbox>
</MailboxStatus>
 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.