Tuesday, August 28, 2007

Auto Accept Agent for Exchange

Here is a neat thing that you can implement for your resource mailboxes. This service will create an Auto Accept Agent on your Exchange Server. This service can send an email to your end user as a confirmation of the acceptance or denial of the booking of the resource.

Once you setup the Auto Except Service on your Exchange Server, here is the script that you will need to use in order to register your resource.

cscript RegisterMailbox.vbs {/m:mailbox@domain.com | /f:file.txt} [/t:domain\AgentAccountName] [/u] [/DEBUG]

The primary SMTP address of the mailbox that you want to register. Use this switch when registering or unregistering a single mailbox.
The name of the text file that contains the primary SMTP addresses of the mailboxes that you want to register. Use this switch when registering or unregistering multiple mailboxes. You must create the text file before using this script. This switch cannot be used with the /m switch.

If the text file is not located in the same folder as the RegisterMailbox.vbs script, you must provide the full path to the location of your text file.

Specifies the account that will be granted full mailbox access. This is typically the domain account that the Auto Accept Agent is running as on the local server. The account must be provided as domain\accountname. If Auto Accept Agent is running as Local System, you do not need to specify this switch unless you want to grant permissions to a domain account that you can use to monitor the resource mailboxes, which is necessary for the MailboxStatus.vbs script described later in this chapter.
Attempts to remove the mailbox binding. Additionally, this switch also attempts to remove full mailbox access for the Auto Accept Agent account specified in the /t switch.
Outputs verbose debug information you can use to diagnose issues.

For example, if you were using a file named Mailboxes.txt to register multiple mailboxes, where the Agent's security context is example\AgentAccount, you might type the following at the command prompt:
C:\>cscript RegisterMailbox.vbs /f:Mailboxes.txt /t:example\AgentAccount

For more information see: http://technet.microsoft.com/en-us/library/bb124104.aspx

No comments: