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 list the IDs of all the defined Web service extensions. These extensions must reside on a computer running a member of the Windows Server 2003 family with IIS 6.
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.
• Examples: example code and a description of the result.
Grammar
Iisext/listext [/s Computer [/u [Domain \]user [/P Password]]]
Parameters
/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
The following command lists all the WEB service extension IDs in the WebSvcExtRestrictionList property of the metabase on the local computer:
Copy Code code as follows:
Complete method:
Copy Code code as follows:
cscript C:\windows\system32\iisext.vbs/
In response, Iisext displays all Web service extension IDs on the local computer.
Connecting to server ... Done
Ssinc
Payroll
Asp
Inventory
asp.net
WEBDAV
Httpodbc