You can use the IIsFtpVirtualDir object to set metabase properties that apply to one or all Ftp virtual directories for an Ftp virtual server. If you use this object at the server's root virtual directory (for example, .../MSFTPSVC/2/Root), inheritable property values will apply to all FTP virtual directories subordinate to the root virtual directory of the second Ftp server. You can set properties for a specific Ftp virtual directory by using the IIsFtpVirtualDir object for a specific virtual directory (e.g. .../MSFTPSVC/2/Root/AVDir).
The IIsFtpVirtualDir object is an ADSI Container object.
For the server's root virtual directory,
IIS://MachineName/MSFTPSVC/n/Root
Where MachineName can be any name or "LocalHost".
For a specific virtual directory,
IIS://MachineName/MSFTPSVC/n/Root/vdirName
Where MachineName can be any name or "LocalHost".
varReturn = object.{Method}
IIsFtpVirtualDir
AccessFlags | IPSecurity |
AccessRead | Path |
AccessWrite | UNCPassword |
DontLog | UNCUserName |
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 |