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 add application dependencies using iisext.vbs

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

Share

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

This article is about how to use iisext.vbs to add application dependencies. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

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

You can use the command line script iisext.vbs (stored in systemroot\ system32) to add dependencies between applications and one or more Web service extensions on computers running Windows Server 2003 family members with IIS 6.0.

Iisext.vbs performs the same actions that can be used with the IIS Manager. You can use any of the tools to manage IIS sites.

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

Iisext / AddDep Application ID [ID] [/ s Computer [/ u [Domain\] User [/ p Password]

Parameters.

Application

Necessary. Specifies the name of the application that depends on the Web service extension.

ID

Necessary. Specifies the ID of the Web service extension on which the application depends. Other dependencies are optional.

/ 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. If you ignore this parameter, 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 necessary for the Web service extension "timesheet" were previously added and enabled on the local computer.

The code is as follows:

Iisext / AddDep Payroll timesheet

In response, iisext displays the following:

Connecting to server... Done.

Adding dependency complete.

Example 2:

The following command makes the application "TravelPlans" rely on the Web service extension "FlightSchedules" and "HotelRooms" on the remote computer. In this example, the files necessary for the Web service extension "FlightSchedules" and "HotelRooms" were previously added and enabled on the remote computer.

The code is as follows:

Iisext / AddDep TravelPlans FlightSchedules HotelRooms / s RemoteComputer / u Manager / p Pa$$Werd

In response, iisext displays the following:

Connecting to server... Done.

Adding dependency complete.

Thank you for reading!

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