Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
You can use the RegEvent.vbs script to register an OnTimer system event sink. When registering for this event, the following script options is used:
cscript RegEvent.vbs Add OnTimer SinkClass Scope StartTime Interval [-e ExpiryTime] [-s ScriptFilePath]
Note that timers have scope the same as other events. However no "event" occurs in that location to cause the event to fire (such as a save or delete). Thus the meaning of the scope is nebulous. Scope does however 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.
See Event Registration and Management for more information on registering and managing event sinks.
Add an OnTimer event to fire 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:25:00 AM"
Register for a script sink.
cscript RegEvent.vbs add ontimer ExOleDB.ScriptEventSink file://./backofficestorage/mydomain/mbx/user1/inbox/TimerEventReg2 "09/15/98 02:35:00 PM" 1 "09/15/98 03:35:00 PM" 1 -s http://public.microsoft.com/my_script_location/script2.vbs