TraceUriPrefix Metabase Property

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

The TraceUriPrefix metabase property defines a specific URL or set of URLs to trace for IIS 6.0 request-based tracing (available in Windows Server 2003 Service Pack 1 or later). When setting this property specify either a physical to a file or a relative path with a wild card.

For example: To trace a specific URL, you would type the following at a command prompt:

**adsutil.vbs set w3svc/n/TraceUriPrefix=**path to URL

and press ENTER. N is the number of the site as it is listed in the metabase, e.g. w3svc/1 is the default Web site (by default). Path to URL is the physical path to the file you want to trace, e.g. /Inetpub/wwwroot/asp/default.asp

To trace a set of URLs, for example all .asp pages or .aspx pages, you would type the following at a command prompt:

adsutil.vbs set w3svc/n/TraceUriPrefix=path to URL*extension

and press ENTER. N is the number of the site as it is listed in the metabase, e.g. w3svc/1 is the default Web site (by default). Path to URL*extension is the physical path to the group of files you want to trace, e.g. /Inetpub/wwwroot/asp/*.asp or /Inetpub/wwwroot/aspnet/*.aspx

Attribute Name Attribute Value

XML Data Type

MULTISZ

WMI Data Type

MULTISZ

ADSI Data Type

MULTISZ

ABO Data Type

MULTISZ

ABO Metabase Identifier

MD_APP_TRACE_URI_LIST

Attributes

INHERIT

Default Value

null

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

2118

Configurable Locations

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

Metabase Path IIS Admin Object Type

/LM/W3SVC

IISWebServer

/LM/W3SVC/n

IISWebServer

Code Example

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

See Also

Tasks

How to Trace Requests for a Specific URL or Set of URLs