How to use the command line to manage IIS FTP site

  

In order to achieve fast sharing of network resources in the Internet, many users use the built-in FTP component of the IIS server to set up an FTP server. Because of its close integration with the Windows system, and easy to use in the IIS console, it is very popular. If you are using IIS6.0, you can also use the script command to manage and maintain the FTP site. With a simple command, you can implement a series of operations in the IIS console. Of course, such a good Dongdong share with everyone.

FTP Site Management IISftp.vbs

The IISftp.vbs command can be used to create, delete, query, and control FTP sites. Because this command is simple to use, it is based on the command line, so it is especially affected. The favorite of network management users.

IISftp Command Format:

IIsFtp [/s [/u [/p ]]]/[arguments]

/s Connected FTP Server Name

/u Connection account name

/p Account password

Option:

/start Start a site

/stop Stop a site< Br>

/pause Pause a site service

/delete Delete a site

/create Create an FTP site

/query Query FTP site

1. Create an FTP Site

The author creates an FTP site called cpcwftp in a local IIS server named suning-3avmjsp1. Run a command prompt on a Windows server 2003 system. Then run the IIsFtp /s suning-3avmjsp1 /u administrator /p rrttjj /create d:cpcwroot cpcwftp /i 192.168.1.2 /b 21 command in the prompt window to complete the creation of the cpcwftp site.

The above is the complete command format, because here is to create an FTP site locally, just run the IIsFtp /create d:cpcwroot cpcwftp /i 192.168.1.2 /b 21 command (Figure 1).

where suning-3avmjsp1 is the server where the FTP site is located, administrator and rrttjj are the users and passwords used to create the FTP site, d:cpcwroot is the home directory of the FTP site, and 192.168.1.2 is bundled with the cpcwftp site. IP address, 21 is the communication port of the FTP site. If the network administrator creates an FTP site in the local IIS server, you can omit the /s suning-3avmjsp1 /u administrator /p rrttjj parameter; if you are creating an FTP site remotely, you must enter the full command.

2. Manage FTP Service

Completed the creation of the cpcwftp site. Now the network administrator can query the site for existence. Run the IIsFtp /query cpcwftp command at the command prompt.

Controlling the status of the cpcwftp site is also very simple. You can start the FTP service of the cpcwftp site by running the IIsFtp /start cpcwftp command at the command prompt. To stop the site's FTP service, run the IIsFtp /stop cpcwftp command to suspend the FTP service by simply running the IIsFtp /pause cpcwftp command.

If you want to delete the cpcwftp site on the local server, run the IIsFtp /delete cpcwftp command at the command prompt.

The above operation is based on the FTP site in the local IIS server. If the FTP site you are operating on is on a remote server, you must use the full command format, that is, you must specify the remote server name and the administrator account used in your operation.

FTP Virtual Directory Management IISftpdr.vbs

To manage and maintain virtual directories in an FTP site, use the IISftpdr.vbs command. It can quickly create, query, and delete virtual directories.

IISftpdr Command Format:

IIsFtpDr [/s [/u [/p ]]]/[arguments]

/s Connected FTP Server Name

/u Connection Account Name

/p Account Password

Option:

/create Create an FTP Site Virtual Directory

/delete Delete An FTP site virtual directory

/query Query virtual directory

1. Create a virtual directory

The author creates a virtual directory for the FTP site named cpcwftp in the local IIS server. Directory CPCWV.

Run the IIsFtpDr /create cpcwftp cpcwv d:cpcwvroot command in the command prompt window to complete the local creation of the virtual directory (Figure 2).

2. Query virtual directory information

After completing the creation, check whether the virtual directory CPCWV exists. Run the IIsFtpDr /query cpcwftp command at the command prompt.

3.Delete a virtual directory

It is also easy to delete a virtual directory. Here I want to delete the virtual directory CPCWV under the FTP site named cpcwftp. Run the IIsFtpDr /delete cpcwftp/cpcwv command at the command prompt.

Although the IISftp.vbs and IISftpdr.vbs commands can be used to easily manage and maintain the FTP site, the script commands provided by IIS6 are not perfect enough, such as directory access permissions and users. Access control, etc., can not be implemented using script commands for the time being. But for regular FTP management and maintenance, using script commands is a good choice.

Copyright © Windows knowledge All Rights Reserved