[This is preliminary documentation and subject to change]

AccessFlags

This single property contains flags, as seen in the Flags section below, for configuring file access permissions.
Attribute NameAttribute Value
Data TypeDWORD
AttributesINHERIT
Default ValueAccessRead
MetaFlagsExCACHE_PROPERTY_MODIFIED
User TypeIIS_MD_UT_FILE
StartingNumber
EndingNumber0
ID6016

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/MSFTPSVC/Info/Templates/Public FTP SiteIIsFtpServer
/LM/MSFTPSVCIIsFtpService
/LM/MSFTPSVC/1/ROOTIIsFtpVirtualDir
/LM/NNTPSVC/1IIsNntpServer
/LM/NNTPSVCIIsNntpService
/LM/NNTPSVC/1/ROOTIIsNntpVirtualDir
/LM/NNTPSVC/1/ROOT/_slavegroupIIsNntpVirtualDir
/LM/NNTPSVC/1/ROOT/controlIIsNntpVirtualDir
/LM/W3SVC/1IIsWebServer
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService
/LM/W3SVC/1/ROOTIIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_binIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdminIIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelpIIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADCIIsWebVirtualDir
/LM/W3SVC/1/ROOT/ScriptsIIsWebVirtualDir
/LM/W3SVC/2/ROOTIIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdminIIsWebVirtualDir

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_ACCESS_PERM
Data typeDWORD
User typeIIS_MD_UT_FILE

Flags

caution Caution    Setting both write and execute permissions can be dangerous, because doing so allows users to modify internal files and run potentially damaging scripts on the server. Remote access flags are operative only when the corresponding general access flag is set. For example, setting AccessNoRemoteRead has no effect unless AccessRead is set as well. If both are set, the local host can read the file, but the file cannot be read by the remote client. The AccessSource flag, if set, grants source access to clients, using the HTTP extensions described by the Web Distributed Authoring and Versioning (WebDAV) standard.

For more information on WebDAV, see the WebDAV working group Web site.

important Important    All permissions are applicable to Web services, servers, directories, and files. Only theAccessRead and AccessWrite permissions are applicable for the FTP services, FTP servers, and FTP directories.
NameValueMetabase Bitmask IdentifierDescription
AccessExecute
4 | 0x00000004
MD_ACCESS_EXECUTE
When set to TRUE, this flag permits execution of ASP scripts and other executable files by the Web server.
AccessSource
16 | 0x00000010
MD_ACCESS_SOURCE
When set to TRUE, this flag allows source access of the requested resource. Access includes support for the HTTP extensions provided by Web Distributed Authoring and Versioning (WebDAV).
AccessRead
1 | 0x00000001
MD_ACCESS_READ
When set to TRUE, this flag permits the file to be read by the Web server.
AccessWrite
2 | 0x00000002
MD_ACCESS_WRITE
When set to TRUE, this flag permits writing to the file by the Web server.
AccessScript
512 | 0x00000200
MD_ACCESS_SCRIPT
When set to TRUE, this flag permits an .asp file to be executed by the ASP engine and allows execution, by the Web server of other types of executable files in addition to .asp files.
AccessNoRemoteExecute
1024 | 0x00002000
MD_ACCESS_NO_REMOTE_EXECUTE
When set to TRUE, this flag prohibits a file from being executed by remote clients.
AccessNoRemoteRead
4096 | 0x00001000
MD_ACCESS_NO_REMOTE_READ
When set to TRUE, this flag prohibits the file from being read by remote clients.
AccessNoRemoteWrite
1024 | 0x00000400
MD_ACCESS_NO_REMOTE_WRITE
When set to TRUE, this flag prohibits the file from being written to by remote clients.
AccessNoRemoteScript
16384 | 0x00004000
MD_ACCESS_NO_REMOTE_SCRIPT
When set to TRUE, this flag prohibits a script file from being executed by remote clients.

© 1997-2001 Microsoft Corporation. All rights reserved.