IIS.VirtualDir.SetProperty
Top  Previous  Next


Sets or edits web or FTP virtual directory properties on IIS 4.0, 5.0 and 6.0

Category
IIS

Script section
[Batch], inside Data.Loop..EndLoop statement

Requirements

·ADSI2.5  

IIS.VirtualDir.SetProperty Type, Server, SiteNumber, VirtualDirName, PropertyName, Value

Type
Options: FTP | Web  
·FTP - manage FTP directory properties  
·Web - manage web directory properties  

Server
IIS Server Name  

SiteNumber
Site number in IIS installation  

VirtualDirName
Name of virtual directory  

PropertyName
Name of property to set, see table 2 below  

Value
New value for property  

Table 1 - PropertyName parameter
PropertyName
Value
Use
AccessExecute
True | False
Web
AccessRead
True | False
FTP, Web
AccessScript
True | False
Web
AccessWrite
True | False
FTP, Web
DontLog
True | False
FTP, Web
EnableDirBrowsing
True | False
Web
Path
String - physical path
FTP, Web


Example
Enable write access for the FTP virtual directory "software" on the first site on server "x5012a"

IIS.VirtualDir.SetProperty FTP, x5012a, 1, software, AccessWrite, True