DirectoryLevelsToScan

This property specifies the number of virtual directory levels to scan in the metabase from the top of the tree (that is, the root virtual directory for a server) to build a list of directories to be monitored for file system changes. The valid range is 0 to 0xFFFFFFFF (unlimited). 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.

Data type Long
Default value 2
Inheritance Not Inheritable

Access Locations

This property is accessible at the following locations:

Metabase Path Key Type
/LM/MSFTPSVC IIsFtpService
/LM/W3SVC IIsWebService

IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier MD_LEVELS_TO_SCAN
User type IIS_MD_UT_SERVER