Implementing methods for adding application dependencies using iisext.vbs _vbs

Source: Internet
Author: User

Applied to: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
You can use command-line scripting iisext.vbs (stored in systemroot\system32) to add dependencies between an application and one or more Web service extensions on a computer running a member of the Windows Server 2003 family with IIS 6.0. If the application is not in the ApplicationDependencies Metabase property, Iisext will create the application.
IisExt.vbs performs the same operations that are available for IIS Manager. You can use either tool to manage an IIS Web site.

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 and any parameters of the script).

This topic includes the following information:

• Syntax: The order in which you type the command and any parameters and options that follow it.
• Parameter: Gives the value of the variable in the command.
• Example: Sample code and a description of the result.

Grammar
IISEXT/ADDDEP application ID [ID] [/s Computer [/u [domain\]user [/P Password]]]

Parameters

Application

Required. Specifies the name of the application that relies on the WEB service extension.

Id

Required. Specifies the ID of the Web service extension that the application relies on. Other dependencies are optional.

/s Computer

Runs the script on the specified remote computer. Type the name or IP address of the computer without the backslash. By default, the script runs on the local computer.

/u [domain\]user

Runs the script with the permissions 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 of the local computer.

/P Password

Specifies the password for the user account specified in the/u parameter. If you omit this argument, the script prompts you to enter a password and does not display the text you typed.

Example

Example 1:
The following command makes the application "Payroll" dependent on the Web service extension "timesheet" on the local computer. In this example, the files required by the Web service extension "timesheet" were previously added and enabled on the local computer.

Copy Code code as follows:

IISEXT/ADDDEP Payroll Timesheet

As a response, Iisext displays the following:

Connecting to server ... Done.
adding dependency complete.

Example 2:

The following command makes the application "Travelplans" dependent on the Web service extension "Flightschedules" and "hotelrooms" on the remote computer. In this example, the files required by the Web service extensions "Flightschedules" and "Hotelrooms" were previously added and enabled on the remote computer.

Copy Code code as follows:

IISEXT/ADDDEP Travelplans flightschedules hotelrooms/s remotecomputer/u manager/p Pa$ $Werd

As a response, Iisext displays the following:

Connecting to server ... Done.
adding dependency complete.

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.