IISVDIR

Syntax

IISVDIR[.VBS] [/create | /delete | /query] /?

IISVDIR[.VBS] /create web_site[/virtual_path] name physical_path [/s computer [/u [Domain]User [/p password]]]

IISVDIR[.VBS] /delete web_site[/virtual_path]/name [/s computer [/u [Domain]User [/p password]]]

IISVDIR[.VBS] /query web_site[/virtual_path] [/s computer [/u [Domain]User [/p password]]]


Parameters

name (NT2003)
Specifies a name for the virtual directory.
physical_path (NT2003)
Specifies the physical directory that stores content for the virtual directory.
You must specify a path on the local computer. If the specified path does not exist, it is created.
/virtual_path (NT2003)
Specifies a path to the virtual directory within the Web site. The virtual path does not include the name of the virtual directory.
Places the virtual directory in a subdirectory of the Web site. By default, the virtual directory is added to the root of the Web site. All directories in the virtual path must already exist on the Web site.
/query lists the Web site root virtual directories, if omitted.
web_site (NT2003)
Specifies the descriptive name or metabase path of the Web site.

Switches

/? (NT2003)
Display help.
/create (NT2003)
Creates virtual directories on Web sites of servers running Windows Server 2003 with Internet Information Services (IIS) 6.0.
/delete (NT2003)
Deletes virtual directories from Web sites of servers running Windows Server 2003 with Internet Information Services (IIS) 6.0.
/domain (NT2003)
Specifies the name of the Active Directory domain.
/dontstart (NT2003)
Indicates that the Web site does not start automatically as soon as it is created. By default, IIS starts the Web site when the /create command completes successfully.
/getadprop (NT2003)
Gets Active Directory properties for a specific user on a local or remote computer.
/i ip_address (NT2003)
Specifies an IP address for the Web site. The default is All Unassigned, which assigns to the site all of the IP addresses on the computer that are not assigned to other sites. Only one site on each IIS server can be set to: All Unassigned.
/isolation {ActiveDirectory | Local} (NT2003)
Provides for one of two user isolation modes, ActiveDirectory and Local. If omitted, the site will not use user isolation.
/query (NT2003)
Displays the virtual directories of Web sites on servers running Windows Server 2003 with Internet Information Services (IIS) 6.0.
/p password (NT2003)
Specifies the password of the user account that is specified in /u. If omitted, you will be prompted.
/pause (NT2003)
Pauses Web sites on local and remote servers.
/s computer (NT2003)
Runs the script on the specified remote computer. Type the computer name or IP address without backslashes. Defaults to the local computer.
/setadprop (NT2003)
Sets Active Directory properties for a specific user on a local or remote computer.
/start (NT2003)
Starts Web sites on local and remote servers.
/stop (NT2003)
Stops Web sites on local and remote servers.
/u [Domain]User (NT2003)
Runs the script with the permissions of the specified user account. This account must be a member of the Administrators group on the remote computer. By default, the script runs with the permissions of the current user of the local computer.

引文来源  IISVDIR