In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to use Iisftp.vbs to create a FTP site", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to use Iisftp.vbs to create a FTP site" bar!
Apply to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
You can use the command line script iisftp.vbs (stored in systemroot\ System32) to create a File transfer Protocol (FTP) site configuration on a local or remote computer running a Windows Server 2003 family member with IIS 6.0. This command does not create or destroy content, but it sets the directory structure and IIS configuration file.
Iisftp.vbs download: https://www.jb51.net/jiaoben/193101.html
When you use iisftp.vbs to create a new FTP site, you specify only the basic properties required to create the site and identify its content. Iisftp.vbs uses the same default properties that the IIS manager uses when creating a new FTP site, and it follows the same inheritance property rules. To configure more advanced properties of the FTP site, use the IIS Manager.
Important matters
Only members of the Administrators group on the local computer can run scripts and executables. As a security best practice, log on to the computer using an account that is not part of the Administrators group, and then use the runas command to run scripts and executables as an administrator. At the command prompt, type runas / profile / User:MyComputer\ Administrator cmd, open a command window with administrator privileges, and then type cscript.exeScriptName (including the full path to the script and any parameters).
This topic includes the following information:
Syntax: the order in which you must type a command and any parameters and options that follow it.
Parameter: the value assigned to the variable in the command.
Example: sample code and a description of the result.
Grammar
Iisftp / create Path SiteName iisftp / create Path SiteName [/ b Port] [/ I IPAddress] [/ dontstart] [/ isolation {AD | Local} [/ ADdomain DomainName / ADadmin [Domain\] User / ADpass Password]] [/ s Computer [/ u [Domain\] User / p Password]]
Parameters.
Path
Specify the location of the FTP site content file. The path must be a local path, such as C:\ Projects\ HTML. If the specified path does not exist, iisftp.vbs creates the path.
In the command, the Path parameter must precede the SiteName parameter immediately. Otherwise, iisftp.vbs cannot interpret the site information correctly.
SiteName
Necessary. Specifies the name of the FTP site.
/ b Port
Specifies the TCP port number of the FTP site. Port 21 is the default.
/ i IPAddress
Specifies the IP address of the FTP site. The default value is all unassigned, which assigns to this site all 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.
/ dontstart
Indicates that the FTP site should not start automatically immediately after it is created, which is contrary to the IIS default setting.
/ isolation {AD | Local}
Provides one of two user isolation modes: AD (Active Directory) and Local. If the / isolation switch does not exist, the site does not use user isolation.
/ ADdomain DomainName
Valid only when the / isolation switch is set to AD. The value is the name of the Active Directory domain.
/ ADadmin [Domain\] User
Valid only when the / isolation switch is set to AD. The value is an administrator name in the format user, domain\ user, or user@domain.
/ ADpass Password
Valid only when the / isolation switch is set to AD. This value is the administrator's password.
/ s Computer
Runs the script on the specified remote computer. Type the computer name or IP address without a backslash. The default is the local computer.
/ u [Domain\] User
Runs the script with the privileges of the specified user account. The 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 on the local computer.
/ p Password
Specifies the password for the user account specified in the / u parameter.
Remarks
Iisftp.vbs does not validate the port number or the IP address of the FTP site, and it does not verify that these bindings are unique within the server. If you create a site with invalid or conflicting bindings, the site will not start.
Example
Example 1
The following example creates a "Archive" FTP site on the local computer and associates it with the contents of the D:\ Public\ Archives directory. This command ignores all optional parameters and accepts default values. The "Archives" subdirectory does not exist, so iisftp.vbs will create it in the "Public" directory.
The copy code is as follows:
Iisftp / create D:\ Public\ Archives Archive
In response, iisftp displays the following message along with the basic properties of the new FTP site. In this example, "server" represents the computer name of drive D:, "site name" is the name specified for the FTP site, "configuration database path" represents the configuration database entry specified by IIS (which is similar to the registry key in the system registry), "IP" is unassigned by default, "port" is set to 21 by default, and "root" is the directory where the FTP file is located. The status is set to started by default.
Connecting to server... Done.
Server = RESKIT
Site Name = Archive
Metabase Path = MSFTPSVC/1452008083
IP = ALL UNASSIGNED
Port = 21
Root = D:\ Public\ Archives
Status = STARTED
Example 2
The following example creates a "Drivers" FTP site configuration on a remote server. It associates the site with the files stored in the C:\ Public\ Download directory on SVR16. This command uses the / I parameter to specify the IP address of the site and the / dontstart parameter to prevent the site from starting automatically. It uses the / s parameter to specify the remote computer and the / u and / p parameters to run the script with the user's administrator account privileges.
The copy code is as follows:
Iisftp / create C:\ Public\ Download Drivers / I 172.31.69.150 / dontstart / s SVR16 / u Admin6 / p p@ssWor#
In response, iisftp displays the following message along with the basic properties of the new FTP site. In this example, the "server" represents the server computer, the "site name" is the name specified for the FTP site, the "configuration database path" represents the configuration database entry specified by IIS (which is similar to the registry key in the system registry), "IP" represents the specified DNS address, the "port" is set to 21 by default, the "root" is the directory where the FTP file is located, and the status is set to stopped as needed.
Connecting to server... Done.
Server = SVR16
Site Name = Drivers
Metabase Path = MSFTPSVC/1932955329
IP = 172.31.69.150
Port = 21
Root = C:\ Public\ Download
Status = STOPPED
Example 3
The following example uses Active Directory isolation to create a "ChangePages" FTP site configuration on a remote server. It associates the site with the files stored in the C:\ Public\ Update directory on SVR16. This command uses the / dontstart parameter to prevent the site from starting automatically. The command can also specify Active Directory isolation with the / isolation parameter and the value of AD, and then use the ADdomain, ADadmin, and ADpass parameters to provide the name of the Active Directory domain and the domain administrator name and password. The / s parameter specifies the server name, the / u and / p parameters specify the user account and password of the administrator of the remote server, and iisftp.vbs script runs with its privileges.
The copy code is as follows:
Iisftp / create C:\ Public\ Update ChangePages / dontstart / isolation AD / ADdomain DomainA / ADadmin Admin5 / ADpass p@ssWor# / s SVR16 / u Admin6 / p p@SSwor#
In response, iisftp displays the following message along with the basic properties of the new FTP site. In this example, "server" represents the server computer, "site name" is the name specified for the FTP site, in this example, the ChangePages "configuration database path" represents the configuration database entry specified by IIS (which is similar to the registry key in the system registry), "IP" is unassigned by default, "port" is set to 21 by default, "root" is the directory where the FTP file is located, and "IsoMode" is the quarantine mode. The mode is Active Directory, and the status is set to started according to the command description.
Connecting to server....Done.
Server = SVR16
Site Name = ChangePages
Metabase Path = MSFTPSCV/945765436
IP = ALL UNASSIGNED
Port = 21
Root = C:\ Public\ Update
IsoMode = AD
Status = STOPPED
Thank you for reading, the above is the content of "how to use Iisftp.vbs to create a FTP site". After the study of this article, I believe you have a deeper understanding of how to use Iisftp.vbs to create a FTP site, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.