The IIsWebDirectory object is used to set metabase properties that apply to one or more Web directories for a Web virtual server. When you use the IIsWebDirectory object to set metabase properties for a Web directory, inheritable properties will apply to all subordinate Web directories and files.
You can also use IIsWebDirectory methods to create and manage Web applications in Web directories and subordinate directories. Applications may also be defined and managed in web virtual directories. For more information, see IIsWebVirtualDir.
The IIsWebDirectory object is an ADSI Container object.
Where MachineName can be any name or "LocalHost".
varReturn = object.{Method}
IIsWebDirectory | IIsWebFile |
Metabase Properties
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 that was previously disabled at a specified key |
AppEnableRecursive | Enables applications that were previously disabled at a specified key and subordinate keys |
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 |
Web directories may be nested, and are addressed with the path to the directory, including the directory name (for example .../vdirName/Dir1/Dir1a/Dir1ab, and so on).