How to start a website using iisweb. vbs start, iisweb. vbsstart

Source: Internet
Author: User

How to start a website using iisweb. vbs start, iisweb. vbsstart

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

IIS automatically starts a website when it is created, unless the Administrator explicitly disallows it with the/dontstart parameter. The Administrator may disable automatic start. For example, leave some time to add the site to DNS.

The Administrator may also suspend or stop the website for troubleshooting. In similar cases, you can use the command line script iisweb. vbs (stored in systemroot \ System32) to start or restart the website.

Important

Only members of the Administrators group on the local computer can run scripts and executable files. As the best security operation, log on to your computer using an account that is not in the Administrators group, and run the script and executable files as Administrator using the runas command. At the command prompt, type runas/profile/User: MyComputer \ Administrator cmd, open a command window with the Administrator permission, and then type cscript.exe ScriptName (including the complete script path and any parameters ).

This topic includes the following information:

• Syntax: the sequence that must be followed when you type a command and any parameters and options that follow it.
• Parameter: Assign the value of the variable in the command.
• Example: sample code and description of the result.


Syntax
Iisweb/start WebSite [WebSite...] [/s Computer [/u [Domain \] User/p Password]

Parameters

WebSite
Required. Specify the site name or configure the database path for the website. The website must be uniquely identified. If multiple websites have the same descriptive name, you must use the configured database path to identify the website.
/S Computer
Run the script on the specified remote computer. Enter a computer name or IP address without a backslash. By default, scripts run on local computers.
/U [Domain \] User
Run the script with the permissions of the specified user account. This account must be a member of the Administrators group on a remote computer. By default, scripts run with the permissions of the current user on the local computer.
/P Password
Specify the password of the user account specified in the/u parameter.

Example

Example 1:
The following example starts the "Products" website on the local computer. This command uses the site name to identify the site. In this example, the/s parameter is ignored because the server is a local computer. Because the current user of the Local Computer must log on as an administrator to run this command, the/u and/p parameters are ignored.

Copy codeThe Code is as follows:
Iisweb/start Products

In response, iisweb displays the following message, confirming that the site has been started and identifies it with the site's configuration database path:

Connecting to server... Done.
Server W3SVC/1977437537 has been STARTED.

Example 2:

The following example starts the "Products" and "Marketing" websites on the remote computer SVR01. This command uses its configuration database path "W3SVC/1509060225" to identify the site "Products", and uses its name to identify the site "Marketing ". In addition, the command uses the/s parameter to specify the remote computer, and uses the/u and/p parameters to run the command with the user's administrator account permissions.

Copy codeThe Code is as follows:
Iisweb/start w3svc/1509060225 Marketing/s SVR01/u Alice/p # word

In response, iisweb displays the following message, confirming that these sites have been started and identified by the configuration database path of each site:

Connecting to server... Done.
Server W3SVC/1509060225 has been STARTED.
Server W3SVC/1977437537 has been STARTED.

Reminder:

You cannot run the preceding command to execute regsvr32 wshom. ocx.
We can also save the above command as bat, and then execute it regularly through the task plan.


Iisweb and iisapp both show invalid sexual values

Check again
Iisweb. vbs can be used to manage IIS websites.
Create a Website: describes how to create a website configuration on a local or remote computer by using iisweb. vbs.
Delete Website: describes how to use iisweb. vbs to delete website configurations on a local or remote computer.
Website initiation: describes how to use iisweb. vbs to start a website on a local or remote computer.
Stop Website: describes how to stop a website on a local or remote computer by using iisweb. vbs.
Pause a Website: describes how to pause a website on a local or remote computer by using iisweb. vbs.
List websites: describes how to use iisweb. vbs to list websites on a local or remote computer.

IIsWeb/start /?
IIsWeb/stop /?
IIsWeb/pause /?
IIsWeb/delete /?
IIsWeb/create /?
IIsWeb/query /?
The following is an example of website creation:

Type cscript iisweb. vbs/create your website directory "your website description"/I IP Address/port B, and then press Enter.
For example, the following command creates and starts a site named www.xxxx.com.cn on port 80 of IP address 192.168.0.2, and E: \ wwwroot serves as its home directory.
The command is as follows:
Cscript iisweb. vbs/create e: \ wwwroot "www.xxxx.com.cn"/I 192.168.0.1/B 80.
 
What is the Java Web Start Software and how to Start it?

What is Java Web Start? Java Web Start allows you to download and run Java applications from the Web. Java Web Start Software: it provides a convenient way to activate the application once to ensure that you always run the latest version of the application to avoid complicated installation or upgrade process. Get the Java Web Start software from the Java 5.0 release., java Runtime Environment (JRE) contains Java Web Start. This means that Java Web Start will be installed automatically when Java is installed. When you download a Java application using Java Web Start Technology for the first time, the Java Web Start Software starts automatically. Java Web Start Software caches (Stores) the entire application to a local computer. In this way, all necessary resources have been saved locally, so it can be completed almost instantly when it is restarted later. Each time an application is started, the Java Web Start Software Component checks the Web site of the application to determine whether a new version exists. If yes, download and Start the new version immediately. Use the Java Web Start Software to Start an application. In the browser, click the corresponding link on the Web page. Using the desktop icon: If you often use an application, you can create a shortcut for the application on the desktop or in the "Start" menu. The Java Web Start software will ask if you want to create shortcuts or entries in the "Start" menu. If you answer "yes", you can start the application without using a browser in the future. The Java Application Cache Viewer: Java Web Start software also provides Application Cache Viewer, which can be started from the Java Control Panel. Cache Viewer allows you to directly start downloaded applications. Use Application Cache Viewer to start an Application, go to "Start> Settings> Control Panel", and double-click the Java icon. The "Java Control Panel" is started ". Click the General tab. Click "Settings" in the "Temporary Internet Files" area. Click View application. Double-click the application you want to start from the list. Through the command prompt: You can also start the application by typing javaws jnlp_url at the command prompt, where jnlp_url is the URL address of the jnlp file of the application. Go to Start> run, and type command. The Command Prompt window is displayed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.