Share via


DirectoryLevelsToScan Metabase Property

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

The DirectoryLevelsToScan property specifies the number of virtual directory levels to scan in the metabase from the root virtual directory for a server in order to build a list of directories to be monitored for file system changes. If a virtual directory is not included in the list, then the IIS cache will not be flushed when a file change occurs in the directory. This list is also used for down-level remote administration from earlier versions of IIS. The value of this property ranges from 0 to 4294967295 (or unlimited).

The metabase represents unlimited as the DWORD value of 4294967295 (0xFFFFFFFF); however, Microsoft Visual Basic Scripting Edition (VBScript) represents unlimited in hexadecimal format as &HFFFFFFFF. Previous versions of IIS represented unlimited as -1.

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_LEVELS_TO_SCAN

Attributes

NO_ATTRIBUTES

Default Value

2

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

1022

Configurable Locations

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

Metabase Path IIS Admin Object Type

/LM/W3SVC

IIsWebService

/LM/MSFTPSVC

IIsFtpService

/LM/NNTPSVC

IIsNntpService

Code Example

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