Using Microsoft® Outlook™, a folder owner can create a script and configure the folder to monitor events that will trigger script functions. As mentioned previously, you must also have Author permission on the EventConfig_<ServerName> folder to bind agents on the server on which they will be run.
To create a script in a folder
Start Microsoft Outlook and locate the folder whose events you want a script to respond to.
Right-click this folder, or select Folder from the File menu.
Give the agent a name, such as Process New Expense Report. This also renames the dialog box.
Choose an event to be monitored. In the When the following event(s) occur check box, select, for example, A new item is posted in this folder. This is illustrated in Process New Expense Report Dialog Box. For more information about the other choices in this dialog box, see Scheduled Event Dialog Box, and About Event Logs.
Choose an agent for the event. To use the default script agent, choose the Script option button and go to Step 8. If you intend to use a non-script agent, skip to Step 10.
Choose Edit Script. This launches Notepad by default. If the script does not exist, a default script will open that contains "stubs" for four events; see Procedure for Editing Scripts. If a script exists, with the script editor open, choose Open on the File menu, and then open the existing script.
If non-script agents are available, they are listed in the drop-down list box below Edit Script, the Other option button is available, and you can choose it to select one of these agents. This list box shows all the COM objects that support the IExchangeEventHandler interface and are bound to the specified server. If, for an agent, you choose a COM object that is also an ActiveX® control that requires properties to be set, you can choose the Properties button to set them in the Properties dialog box.