Creating an Account for Agent Installation

"Installing an agent" means placing the script that handles events into the folder being monitored for events. As a developer, you do this when you first create the script and every time you edit it and save the changes.

Not just anybody can install an agent. For security purposes, Microsoft Exchange Server restricts this action to persons with an Exchange mailbox associated with a Windows NT® user account. The Exchange account (as identified within Microsoft Exchange Server by its e-mail alias) must also have been granted permissions on the monitored folder sufficient for saving files into it, in this case the agent.

Note  This account must exist and have proper permissions before you start developing the agent (writing its script). Otherwise, you cannot save the agent into the monitored folder, which also means you cannot test it.

Agents Need to Log On

The actions performed by agents — creating, routing, and deleting messages and other documents — represent a good deal of power within the Microsoft Exchange Server installation. To help ensure that this power is not abused, an agent must operate within the security limits imposed by an administrator.

So that these limits are enforced, an agent must log on using an Outlook profile every time it runs. By default, this is the profile of the person who installed the agent. In this way, all of your agents acquire an exact copy of your Exchange permissions when running. However, if you leave the organization and your mailbox is disabled, all of your scripts will stop running, because they can no longer log on to Microsoft Exchange Server.

It is recommended that developers create a specific "agent" account to use for installing and running scripts.

To create a Microsoft Exchange Server user account

This procedure also creates a mailbox for the Event Service service account. This service account is used for installing Event Service scripts, which also run in the context of this account.

  1. Start the Microsoft Exchange Server Administrator program.
  2. In the Administrator pane, click Recipients.
  3. On the File menu, click New Mailbox.
  4. In the Properties dialog box, enter values for the Display and Alias properties.
  5. Click Primary Windows NT Account.
  6. Select the Select an existing Windows NT account option. Click OK.
  7. In the Names list box in the Add User or Group dialog box, select the account used for the Microsoft Exchange Event Service. This user account was named during the installation of Microsoft Exchange Server. To find this name, use the following procedure, "To find the name of the Microsoft Exchange Event Service service account."

To find the name of the Microsoft Exchange Event Service service account

  1. Click the Windows® Start button, point to Settings, and click Control Panel.
  2. Click the Services icon.
  3. Double-click Microsoft Exchange Event Service.
  4. In the Service dialog box, the service account name appears under Log On As, in the This Account text field.