IIsWebVirtualDir

You can use the IIsWebVirtualDir object to set metabase properties that apply to one or all Web virtual directories for a Web virtual server. If you use the IIsWebVirtualDir object at the server's root virtual directory (.../W3SVC/2/Root), inheritable property values will apply to all subordinate virtual directories. You can set properties for a specific virtual directory by using the IIsWebVirtualDir object for a specific virtual directory (.../W3SVC/2/Root/AVdir).

You can also use IIsWebVirtualDir methods to create and manage Web applications in Web virtual directories and subordinate virtual directories. Applications may also be defined and managed in web directories. See IIsWebDirectory.

The IIsWebVirtualDir object is an ADSI container object.

ADsPath

For the server's root virtual directory,

IIS://MachineName/W3SVC/n/Root

Where MachineName can be any name or "LocalHost".

For a specific virtual directory,

IIS://MachineName/W3SVC/n/Root/vdirName

Where MachineName can be any name or "LocalHost".

Syntax

varReturn = object.{Method}
 

Parts

varReturn
A variable that receives the return value from the method.
object
A variable that contains the IIsWebVirtualDir object, usually as a result of a previous GetObject operation.
Method
The object method chosen.

May Contain

IIsWebVirtualDir IIsWebDirectory IIsWebFile

Properties

ADSI Object Properties

Metabase Properties

A – Asp...
AccessExecute AppOopRecoverLimit
AccessFlags AppPackageID
AccessNoRemoteExecute AppPackageName
AccessNoRemoteRead AppRoot
AccessNoRemoteScript AppWamClsid
AccessNoRemoteWrite AspAllowOutOfProcComponents
AccessRead AspAllowSessionState
AccessScript AspBufferingOn
AccessSSL AspCodepage
AccessSSL128 AspEnableParentPaths
AccessSSLFlags AspExceptionCatchEnable
AccessSSLMapCert AspLogErrorRequests
AccessSSLNegotiateCert AspMemFreeFactor
AccessSSLRequireCert AspQueueTimeout
AccessWrite AspScriptEngineCacheMax
AnonymousPasswordSync AspScriptErrorMessage
AnonymousUserName AspScriptErrorSentToBrowser
AnonymousUserPass AspScriptFileCacheSize
AppAllowClientDebug AspScriptLanguage
AppAllowDebugging AspScriptTimeout
AppFriendlyName AspSessionTimeout
AppIsolated
 
Auth – U
AuthAnonymous EnableDirBrowsing
AuthBasic EnableDocFooter
AuthFlags EnableReverseDns
AuthNTLM HttpCustomHeaders
AuthPersistence HttpErrors
CacheControlCustom HttpExpires
CacheControlMaxAge HttpPics
CacheControlNoCache HttpRedirect
ContentIndexed IPSecurity
CreateCGIWithNewConsole LogonMethod
CreateProcessAsUser MimeMap
DefaultDoc Path
DefaultDocFooter PoolIDCTimeout
DefaultLogonDomain PutReadSize
DirBrowseFlags Realm
DirBrowseShowDate RedirectHeaders
DirBrowseShowExtension ScriptMaps
DirBrowseShowLongDate SSIExecDisable
DirBrowseShowSize UNCAuthenticationPassthrough
DirBrowseShowTime UNCPassword
DontLog UNCUserName
EnableDefaultDoc UploadReadAheadSize

Methods

ADSI Object Methods Standard methods for ADSI objects
ADSI container object methods Standard methods for ADSI container objects
Common Object Methods Methods, other than ADSI methods, common to all IIS Admin Objects
AppCreate Creates an application at a specified metabase key
AppDelete Deletes an application definition at a specified key
AppDeleteRecursive Deletes application definitions at a specified key and subordinate keys
AppDisable Disables an application at a specified key
AppDisableRecursive Disables applications at a specified key and subordinate keys
AppEnable Enables an application at a specified key, that was previously disabled
AppEnableRecursive Enables applications at a specified key and subordinate keys, that were previously disabled
AppGetStatus Retrieves the status of an application
AppUnload Unloads an application at a specified key
AppUnloadRecursive Unloads applications at a specified key and subordinate keys