ScriptMaps Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The ScriptMaps property specifies the file name extensions of applications used for script processor mappings. The list string is written in the following format:

"Extension, ScriptProcessor, Flags, IncludedVerbs"

Where Extension is the file name extension, such as .htm, ScriptProcessor is the full path to the DLL, Flags is the integer value corresponding to the requested behavior described in the Bitmask Table, and IncludedVerbs is a list of the verbs that a particular ISAPI DLL processes.

For example, to specify the file extension for the ISAPI "Test.dll" with a file extension of ".htm", you might provide the following list (string):

".htm,C:\Windows40\System32\Inetsrv\Test.dll,5,GET, HEAD, POST"

Note IIS allows an "*" in place of the file name extension, which effectively routes all requests though the designated ScriptProcessor. This feature is useful when applying a custom ISAPI extension that will handle requests from all file types.

In IIS version 4.0 and earlier, the syntax was to list excluded verbs rather than included verbs. In version 5.0 and later, if no verbs are listed, a value of "all verbs" is assumed. You should list the verbs you want your ISAPI filter or extension to handle.

Attribute Name Attribute Value

XML Data Type

MULTISZ

WMI Data Type

MULTISZ

ADSI Data Type

MULTISZ

ABO Data Type

MULTISZ

ABO Metabase Identifier

MD_SCRIPT_MAPS

Attributes

INHERIT

Default Value

null

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_FILE

ID

6014

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

/LM/W3SVC/n

IIsWebServer

/LM/W3SVC

IIsWebService

/LM/W3SVC/n/ROOT/file_name /LM/W3SVC/n/ROOT/virtual_directory_name/file_name

IIsWebFile

/LM/W3SVC/n/ROOT/physical_directory_name /LM/W3SVC/n/virtual_directory_name/physical_directory_name

IIsWebDirectory

Values

Constant Value Description

MD_SCRIPTMAPFLAG_SCRIPT

0x00000001

Scripts are allowed to run in directories given Script permission. If this value is not set, then the script can only be run in directories that are flagged for Execute permission.

MD_SCRIPTMAPFLAG_CHECK_PATH_INFO

0x00000004

The server attempts to access the PATH_INFO portion of the URL, as a file, before starting the scripting engine. If the file can't be opened, or doesn't exist, an error is returned to the client.

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.