Saturday, December 5, 2009

IIS Virtual Directory Properties

As an update to my post on IIS Web Server Properties, here is a list of properties for Virtual Directories.

If you are interested in the code, I wrote it in PowerShell.  Here it is:

function List-VirtualDirectoryProps() { 
$virtualDirectory = New-Object System.DirectoryServices.DirectoryEntry("IIS://localhost/W3SVC/1/Root/stb1")
 $virtualDirectorySchema = New-Object System.DirectoryServices.DirectoryEntry($virtualDirectory.Schema)
 foreach ($propName in $virtualDirectorySchema.OptionalProperties) {
  $prop = $virtualDirectory.Properties[$propName]
  $value = $prop.Value
  $type = ""
  if ($value) {
   $type = $value.GetType().ToString()
  }
  $out = new-object psobject
  $out | add-member noteproperty Name $prop.PropertyName
  $out | add-member noteproperty Type $type
  write-output $out
 }
}

Common Properties

Name
Type
AccessExecute

AccessFlags
int
AccessNoPhysicalDir

AccessNoRemoteExecute

AccessNoRemoteRead

AccessNoRemoteScript

AccessNoRemoteWrite

AccessRead
bool
AccessScript
bool
AccessSource

AccessSSL

AccessSSL128

AccessSSLFlags

AccessSSLMapCert

AccessSSLNegotiateCert

AccessSSLRequireCert

AccessWrite

AdminACLBin

AnonymousPasswordSync
bool
AnonymousUserName
string
AnonymousUserPass

AppAllowClientDebug

AppAllowDebugging

AppFriendlyName

AppIsolated

AppOopRecoverLimit
int
AppPackageID

AppPackageName

AppPoolId
string
AppRoot
string
AppWamClsid

AspAllowOutOfProcComponents
bool
AspAllowSessionState
bool
AspAppServiceFlags

AspBufferingLimit
int
AspBufferingOn
bool
AspCalcLineNumber
bool
AspCodepage

AspDiskTemplateCacheDirectory
string
AspEnableApplicationRestart
bool
AspEnableAspHtmlFallback

AspEnableChunkedEncoding
bool
AspEnableParentPaths

AspEnableSxs

AspEnableTracker

AspEnableTypelibCache
bool
AspErrorsToNTLog

AspExceptionCatchEnable
bool
AspExecuteInMTA

AspKeepSessionIDSecure
int
AspLCID

AspLogErrorRequests
bool
AspMaxDiskTemplateCacheFiles
int
AspMaxRequestEntityAllowed
int
AspPartitionID

AspProcessorThreadMax
int
AspQueueConnectionTestTime
int
AspQueueTimeout
int
AspRequestQueueMax
int
AspRunOnEndAnonymously
bool
AspScriptEngineCacheMax
int
AspScriptErrorMessage
string
AspScriptErrorSentToBrowser
bool
AspScriptFileCacheSize
int
AspScriptLanguage
string
AspScriptTimeout
int
AspSessionMax
int
AspSessionTimeout
int
AspSxsName

AspTrackThreadingModel

AspUsePartition

AuthAnonymous
bool
AuthBasic

AuthFlags
int
AuthMD5

AuthNTLM

AuthPassport

AuthPersistence
int
AuthPersistSingleRequest
bool
AzEnable

AzImpersonationLevel

AzScopeName

AzStoreName

CacheControlCustom

CacheControlMaxAge

CacheControlNoCache

CacheISAPI
bool
CGITimeout
int
ContentIndexed

CreateCGIWithNewConsole

CreateProcessAsUser
bool
DefaultDoc
string
DefaultDocFooter

DefaultLogonDomain

DirBrowseFlags
int
DirBrowseShowDate
bool
DirBrowseShowExtension
bool
DirBrowseShowLongDate

DirBrowseShowSize
bool
DirBrowseShowTime
bool
DisableStaticFileCache

DoDynamicCompression

DontLog

DoStaticCompression

EnableDefaultDoc
bool
EnableDirBrowsing

EnableDocFooter

EnabledProtocols

EnableReverseDns

FrontPageWeb

HttpCustomHeaders
string
HttpErrors
object[]
HttpErrorsExistingResponse

HttpExpires
string
HttpPics

HttpRedirect

IPSecurity
__Comobject
KeyType
string
LogonMethod
int
MaxRequestEntityAllowed
int
MimeMap

NTAuthenticationProviders
string
PassportRequireADMapping
int
Path
string
PoolIdcTimeout

Realm

RedirectHeaders

ScriptMaps
object[]
ShutdownTimeLimit
int
SSIExecDisable

UNCPassword

UNCUserName

UploadReadAheadSize
int
UseDigestSSP

Win32Error