The DirBrowseFlags contains flags, as seen in the Flags section, that control whether directory browsing is enabled, how much directory and file information is provided if browsing is enabled, and whether there is a default page in the directory.
If a client accesses the directory and does not provide a file name, and the EnableDefaultDoc flag is set to true, the server will look for a default file specified in the DefaultDoc property. If a default file does not exist in the directory, and the EnableDirBrowsing flag is set to true, then directory browsing is enabled.
Attribute Name
Value
ADSI/WMI Data Type
DWORD
ABO Data Type
DWORD_METADATA
Schema Default
DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | EnableDefaultDoc
Internal Default
DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize | DirBrowseShowExtension | DirBrowseShowLongDate | EnableDefaultDoc
Upper Bound
0
Lower Bound
Not specified
Internal ID
6005
Friendly ID
MD_DIRECTORY_BROWSING
Property Attributes
INHERIT
User Type
IIS_MD_UT_FILE
You can configure this property at the following locations in the IIS metabase.
Metabase Path
IIS Admin Object Type
/LM/W3SVC
IIsWebService
/LM/W3SVC/n
IIsWebServer
/LM/W3SVC/n/ROOT/physical_directory_name
/LM/W3SVC/n/virtual_directory_name/physical_directory_name
IIsWebDirectory
/LM/W3SVC/n/ROOT
/LM/W3SVC/n/ROOT/virtual_directory_name
IIsWebVirtualDir
Flag Name
DirBrowseShowDate
Versions Applicable
[IIS 5.0][IIS 5.1][IIS 6.0]
Description
When set to true, date information is displayed when browsing directories.
Bitmask
2 (hex 0x00000002)
Friendly Bitmask ID
MD_DIRBROW_SHOW_DATE
6200
DirBrowseShowExtension
When set to true, file name extensions are displayed when browsing directories.
16 (hex 0x00000010)
MD_DIRBROW_SHOW_EXTENSION
6203
DirBrowseShowLongDate
When set to true, date information is displayed in extended format when displaying directories.
32 (hex 0x00000020)
MD_DIRBROW_LONG_DATE
6204
DirBrowseShowSize
When set to true, file size information is displayed when browsing directories.
8 (hex 0x00000008)
MD_DIRBROW_SHOW_SIZE
6202
DirBrowseShowTime
When set to true, file time information is displayed when displaying directories.
4 (hex 0x00000004)
MD_DIRBROW_SHOW_TIME
6201
EnableDefaultDoc
When set to true, the default document (specified by the DefaultDoc property) for a directory is loaded when the directory is browsed.
1073741824 (hex 0x40000000)
MD_DIRBROW_LOADDEFAULT
6206
EnableDirBrowsing
When set to true, directory browsing is enabled.
2147483648 (hex 0x80000000)
MD_DIRBROW_ENABLED
6205
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product: IIS