Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
The OnMdbStartup and OnMdbShutdown system events are defined only for a particular server or database and do not correspond to any particular folder or store. system events. The OnTimer system event has a special syntax. See Registering an OnTimer Event Sink Binding.
cscript RegEvent.vbs Add SystemEvent SinkClass Scope [-s ScriptFilePath]
Note that system events have scope the same as other events. However the event is not location specific. 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.
This example specifies the script host sink class (ExOleDB.ScriptEventSink), which then runs the script specified using the -s option.
cscript RegEvent.vbs add onmdbstartup ExOleDB.ScriptEventSink.1 -s c:\temp\script.vbs