Computer and Software Support


Iisapp.vbs: IIS application query script

This page is from Microsoft

Reports the process identifiers (PIDs) of currently running w3pwp.exe processes serving a particular application pool.
 
Syntax
iisapp [a/ AppPoolName | /p AppPoolID]
Parameters
/aAppPoolName
Specifies the name of a particular application pool. (Optional)
/pAppPoolID
Specifies an application pool by its ID number. (Optional)
Remarks
  • If no application pool name or ID are specified, iisapp lists all running applications.
  • The /u and /p command-line options are available only when you use /s. You must use /p with /u to provide the user's password.
  • Iisext.vbs performs the same operations that are available from IIS Manager. You can use either tool to administer IIS Web sites.
  • The computer issuing the command must be running Windows XP or a Windows Server 2003 operating system. The user must be a member of the Administrators group on any computer that the command affects.
  • The computer that the command affects must be a server running Windows Server 2003 with Internet Information Services (IIS) 6.0.
 
Examples
The following examples show how to use iisapp in specific situations.

To view all running applications

The following example displays all application pools running on the local computer, identified by their process ID (PID) and application pool ID (AppPoolID). The command omits all optional parameters and accepts the default values.

iisapp

Iisapp responds with the following:

Connecting to server ...Done.
W3WP.exe PID: 2232   AppPoolID: DefaultAppPool
W3WP.exe PID: 2608   AppPoolID: MyAppPool

To view running applications by process ID

If you know the PID of a specific application, you can check its status with the following command.

iisapp /p 2608

Iisapp responds with the following:

Connecting to server ...Done.
W3WP.exe PID: 2608   AppPoolID: MyAppPool

Formatting legend

Format Meaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...) Parameter that can be repeated several times in a command line
Between brackets ([]) Optional items
Between braces ({}); choices separated by pipe (|). Example: {even|odd} Set of choices from which the user must choose only one
Courier font Code or program output