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

How to pause a website using Iisweb.vbs

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces "how to use Iisweb.vbs to suspend the website". In daily operation, I believe many people have doubts about how to use Iisweb.vbs to suspend the website. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to use Iisweb.vbs to suspend the website"! Next, please follow the small series to learn together!

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

Suspending a website is similar to stopping a website, except that the website allows existing processes to continue to complete. Administrators may want to use this feature for troubleshooting if suddenly stopping the site causes serious problems for users.

You can pause a Web site indefinitely using the command-line script iisweb.vbs (stored in systemroot\System32). Suspending a Web site prevents Internet services from accepting new connections, but does not affect requests 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 a command prompt, type runas /profile /User:MyComputer\Administrator cmd, open a command window with administrator privileges, and type cscript.exeScriptName (including the full path of the script and any parameters).

This topic includes the following information:

Syntax: The order in which a command must be typed and any parameters and options that follow it.

Parameters: values assigned to variables in commands.

Examples: Sample code and description of results.

syntax

iisweb/pause WebSite [WebSite...] [ /s Computer [ /u [Domain\]User /p Password]]

parameters

WebSite

Necessary. Specify a site name or configure a database path for the Web site. Websites must be uniquely identified. If more than one Web site has the same descriptive name, you must identify the Web site using the configuration database path.

/s Computer

Runs the script on the specified remote computer. Type the computer name or IP address without the backslash. By default, scripts run 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, scripts run with the privileges of the current user of 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 Web site "Products" on your local computer. This command identifies the site with the site name. In this example, the/s parameter is ignored because the server is local. The/u and/p parameters are ignored because the current user of the local computer must be logged in as an administrator to run the command.

The copy code is as follows:

iisweb /pause Products

In response, iisweb displays the following message confirming that the site has been paused and identified by the site's configuration database path:

Connecting to server ... Done.

Server W3SVC/1977437537 has been PAUSED.

Example 2:

The following example pauses the Web sites Products and Marketing on the remote computer SVR01. The command identifies the site "Products" with its configuration database path "W3SVC/1509060225" and the site "Marketing" with its name. Additionally, 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:

iisweb /pause w3svc/1509060225 Marketing /s SVR01 /u Alice /p p@##word

In response, iisweb displays the following message confirming that the site has been paused and identifies each site with its configuration database path:

Connecting to server ... Done.

Server W3SVC/1509060225 has been PAUSED.

Server W3SVC/1977437537 has been PAUSED.

At this point, the study on "how to use Iisweb.vbs to pause the website" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

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