Share via


Registering for an OnTimer Event

Registering for an OnTimer Event

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The following example uses the RegEvent script to register for an OnTimer event.

Timers have scope, in the same way as other events. With timers, however, no event occurs in that location to cause the specified event to occur (such as a save event or a delete event). Note that scope does define a specific location for the registration event item, which can affect the security context of the event sink, and guarantees that the event will be deleted if the folder containing the timer event registration is deleted.

For more information about registering and managing event registrations, see Event Registration.

Examples

Add an OnTimer event to occur every minute for one hour:

cscript RegEvent.vbs add ontimer sink1.sink1.1
   file://./backofficestorage/mydomain/public%20folders/events/EventRegTimerItem1
   "8/4/98 01:50:00 AM" 1 -e "8/4/98 02:50:00 AM"

Register for an event handled by a script:

cscript RegEvent.vbs add ontimer ExOleDB.ScriptEventSink.1
   file://./backofficestorage/mydomain/mbx/user1/inbox/TimerEventReg2
   "09/15/98 02:35:00 PM" 1  -e "09/15/98 03:35:00 PM"
   -url http://public.example.com/my_script_location/script2.vbs

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.