[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 Name | Attribute Value
Data Type | DWORD
Attributes | INHERIT
Default Value | AccessRead
MetaFlagsEx | CACHE_PROPERTY_MODIFIED
User Type | IIS_MD_UT_FILE
StartingNumber |
EndingNumber | 0
ID | 6016

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type
/LM/MSFTPSVC/Info/Templates/Public FTP Site | IIsFtpServer
/LM/MSFTPSVC | IIsFtpService
/LM/MSFTPSVC/1/ROOT | IIsFtpVirtualDir
/LM/NNTPSVC/1 | IIsNntpServer
/LM/NNTPSVC | IIsNntpService
/LM/NNTPSVC/1/ROOT | IIsNntpVirtualDir
/LM/NNTPSVC/1/ROOT/_slavegroup | IIsNntpVirtualDir
/LM/NNTPSVC/1/ROOT/control | IIsNntpVirtualDir
/LM/W3SVC/1 | IIsWebServer
/LM/W3SVC/2 | IIsWebServer
/LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer
/LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer
/LM/W3SVC | IIsWebService
/LM/W3SVC/1/ROOT | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/_vti_bin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISAdmin | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/IISHelp | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/MSADC | IIsWebVirtualDir
/LM/W3SVC/1/ROOT/Scripts | IIsWebVirtualDir
/LM/W3SVC/2/ROOT | IIsWebVirtualDir
/LM/W3SVC/2/ROOT/IISAdmin | IIsWebVirtualDir

### 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 type | DWORD
User type | IIS_MD_UT_FILE

### Flags

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 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.
Name | Value | Metabase Bitmask Identifier | Description
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.