WMS Active Script
Event Handler - general properties
The WMS Active Script Event Handler plug-in enables you to
attach a custom script that you can use to provide feedback about
events on your Windows Media server.
You can write the script in any scripting language that supports
the Microsoft ActiveX scripting interfaces; for example, Microsoft
JScript, Microsoft Visual Basic Scripting Edition (VBScript), Perl,
PScript, and Python. You can configure the following options for
File name of script to run
Type the name of the script file that you want to
run. In the Windows Media Services snap-in, you can also click
Browse to locate the file.
Settings in this area determine whether or not you
will use a debugger with your script file.
Enable script debugging
Select this option to attach the Microsoft Script
Debugger to your script file. If an error is encountered while
running the script, the debugger stops the script, traps the error,
and presents the error in a dialog box to enable you to
troubleshoot the problem.
Last script error information
Settings in this area provide information about the
last error encountered when the specified script was run.
Displays the line number in the script file where
the error was encountered.
Displays the character number in the line where the
error was encountered.
Most recent error message
Displays the error code that the scripting engine
To enable script debugging, a script debugger
must be installed on your server. You can download the Microsoft
Script Debugger from the Microsoft Scripting Technologies page on
the Microsoft Web site.
The Microsoft Script Debugger does not work with
the Network Service account. In order to use the Microsoft Script
Debugger with Windows Media Services, you must configure Windows
Media Services to use the Local System account. When using the
Local System account, Windows Media Services will have limited
access to network resources that require authentication when those
resources are referenced by using IP addresses. Remember to set
Windows Media Services to use the Network Service account when
debugging is complete to resume normal operation.
The proper script engine must be installed for
the debugger to work correctly. The VBScript and JScript engines
are installed by default with the Windows operating system. If you
use another scripting language, be sure to install the proper
Custom or third-party plug-ins should be located
in a protected directory to prevent tampering. The protected
directory can be any directory that has been set to deny write
permissions to unauthorized users. For more information about
restricting directory access, see Windows Help and Support.
The WMS Active Script Event Handler plug-in is
available only if Windows Media Services 9 Series is running on the
following editions of the operating system: Windows Server 2003,
Enterprise Edition and Windows Server 2003, Datacenter Edition. If
you are running Windows Server 2003, Standard Edition, this feature
is not supported.