Listing Running Web Applications
You can use the command-line script iisapp.vbs, which is stored in systemroot\system32, to view any worker processes that are currently running. This command is often used for troubleshooting.
The computer issuing the command must be running WindowsXP or a Windows.NET Server family system. The computer that the command affects must be running Windows.NET with IIS6.0.
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
iisapp [**a/**AppPoolName | /pAppPoolID]
Parameters
- /aAppPoolName
Optional. Specifies the name of a particular application pool. - /pAppPoolID
Optional. Specifies an application pool by its ID number.
Example 1: Viewing all running applications
The following command displays all of the application pools that are running on the local computer:
iisapp
In response, iisapp displays all of the currently running applications, identifying each application pool by its process ID (PID) and application pool ID (AppPoolID). Iisapp omits all of the optional parameters and accepts the default values.
W3WP.exe PID: 2232 AppPoolID: DefaultAppPool W3WP.exe PID: 2608 AppPoolID: MyAppPool
Example 2: Viewing running applications by process ID
Use the following command to view a specific application by entering its PID:
iisapp /p 2608
In response, iisapp displays the specified application.
W3WP.exe PID: 2608 AppPoolID: MyAppPool