Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tutorial on how to stop a FTP site using Iisftp.vbs

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "using Iisftp.vbs to stop FTP site method tutorial". In daily operation, I believe that many people have doubts about using Iisftp.vbs to stop FTP site method tutorial. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "using Iisftp.vbs to stop FTP site method tutorial". Next, please follow the editor to study!

Apply to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

If your File transfer Protocol (FTP) site is not working properly, or if your FTP site is slow or unresponsive, stopping and restarting the FTP site can clear temporary software problems, such as faulty worker processes.

In similar cases, the command line script iisftp.vbs (stored in systemroot\ System32) can be used to cause the FTP site to stop responding. The content of the site remains the same, but users will not be able to access it until the site is restarted.

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/stop FTPSite [FTPSite...] [/ s Computer [/ u [Domain\] User / p Password]]

Parameters.

FTPSite

Necessary. Specify the site name or configuration database path for the FTP site. The FTP site must be uniquely identified. If there are multiple FTP sites with the same descriptive name, you must use the configuration database path to identify the FTP site.

/ s Computer

Runs the script on the specified remote computer. Type the computer name or IP address without a backslash. By default, the script runs on 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.

Example

Example 1:

The following example stops the "Drivers" FTP site on the local computer. This command identifies the site by its name. In this case, the / s parameter is ignored because the server is the local computer. Because the current user of the local computer must be logged in as an administrator to run the command, the / u and / p parameters are ignored.

The copy code is as follows:

Iisftp / stop Drivers

In response, iisftp displays the following message confirming that the site has stopped and identifies it with the configuration database path of the site: the configuration database path is moderately priced in the IIS entry in the system registry.

Connecting to server... Done.

Server MSFTPSVC/1879143292 has been STOPPED.

Example 2:

The following example stops the "Downloads" and "Drivers" FTP sites on the remote computer SVR01. This command identifies the "Downloads" site by its configuration database path "MSFTPSVC/2109607139" and the "Drivers" site by its name. In addition, the command uses the / s parameter to specify the remote computer and the / u and / p parameters to run the command with the user's administrator account privileges.

The copy code is as follows:

Iisftp / stop MSFTPSVC/2109607139 Drivers / s SVR01 / u Tom / p p###word

In response, iisftp displays the following message confirming that the site has been stopped and identifying each site with its configuration database path:

Connecting to server... Done.

Server MSFTPSVC/2109607139 has been STOPPED.

Server MSFTPSVC/1879143292 has been STOPPED.

The advantage of using scripts is that you can perform operations in batches. The combination of bat and planning is even more perfect.

At this point, the study on "using Iisftp.vbs to stop the FTP site method tutorial" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report