Share via


Adding Application Dependencies

You can use the command-line script iisext.vbs, which is stored in systemroot\system32, to add a dependency between an application and one or more Web service extensions on a server running Windows.NET with IIS6.0. If the application does not exist in the ApplicationDependencies property, iisext will create it.

Iisext.vbs performs the same operations that are available in IIS Manager. You can use either tool to administer IIS Web sites.

important Important You must be a member of the Administrators group on the local computer to run scripts and executables, or you must have been delegated the appropriate authority. As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Runas command to run your script or executable as an administrator. From the command prompt, type runas /user:administrative_accountname "script or executable command".

This topic contains the following sections:

  • Syntax: The order in which you must type a command and any arguments and options that follow it.
  • Parameters: The values that are given to variables in the command.
  • Examples: Sample code and an explanation of the results.

Syntax

iisext/AddDep ApplicationID [ID] [/s Computer [/u [Domain**\]User [/p**Password]]]

Parameters

  • Application
    Required. Specifies the name of the application that is dependent on a Web service extension.
  • ID
    Required. Specifies the ID of the Web service extension upon which the application is dependent. Additional dependencies are optional.
  • /sComputer
    Runs the script on the specified remote computer. Type the computer name or IP address without backslashes. By default, the script runs on the local computer.
  • /u [Domain**\**]User
    Runs the script with the permissions of the specified user account. This 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.
  • /pPassword
    Specifies the password of the user account that is specified in the /u parameter. If you omit this parameter, the script prompts you for the password and obscures the text you type.

Example 1: Adding an application dependency to an application on the local computer

The following command makes the application "Payroll" dependent on the Web service extension "timesheet" on the local computer. In this example, the files that are required for the Web service extension "timesheet" were previously added to and enabled on the local computer.

iisext /AddDep Payroll timesheet

In response, iisext displays the following:

Connecting to server ...Done.
Adding dependency complete.

Example 2: Adding multiple application dependencies to an application on a remote computer

The following command makes the application "TravelPlans" dependent on the Web service extensions "FlightSchedules" and "HotelRooms" on a remote computer. In this example, the files that are required for the Web service extensions "FlightSchedules" and "HotelRooms" were previously added to and enabled on the remote computer.

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.