In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to use Iisftp.vbs to pause a FTP site", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use Iisftp.vbs to pause a FTP site.
Apply to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
Suspending a File transfer Protocol (FTP) site is similar to stopping a site, except that suspending a site allows the existing process to continue. If stopping the site abruptly will cause serious problems for users, the administrator may want to use this feature for troubleshooting.
You can use the command line script iisftp.vbs (stored in systemroot\ System32) to suspend the Web site indefinitely. Suspending the site prevents the FTP service from accepting new connections, but it does not affect requests that are already being processed.
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/pause 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 pauses the FTP site "Drivers" 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 / pause Drivers
In response, iisftp displays the following message confirming that the site has been paused and identifying each site with the configuration database path of the site: the entry of the configuration database path in IIS that is equivalent to that in the system registry.
Connecting to server... Done.
Server MSFTPSVC/1879143292 has been PAUSED.
Example 2:
The following example pauses the FTP sites "Downloads" and "Drivers" 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 / pause MSFTPSVC/2109607139 Drivers / s SVR01 / u Tom / p pa##word
In response, iisftp displays the following message confirming that the site has been paused and identifying each site with its configuration database path:
Connecting to server... Done.
Server MSFTPSVC/2109607139 has been PAUSED.
Server MSFTPSVC/1879143292 has been PAUSED.
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, I believe you have a deeper understanding of "how to use Iisftp.vbs to pause FTP sites". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.