Article ID: 328419 - Last Review: December 3, 2007 - Revision: 5.9 How To Add and Remove Web Service Extension Files in IIS 6.0This article was previously published under Q328419 On This PageSUMMARY This step-by-step article describes how to add Web service
extension files such as Internet Server Application Programming Interface
(ISAPI) extensions and Common Gateway Interface (CGI) applications to a local
or a remote server in Internet Information Services (IIS) 6.0. The article also
describes how to remove Web service extension files from a local or remote
server in IIS 6.0. The IIS 6.0 metabase contains the Web Service Extension Restriction List (WebSvcExtRestrictionList) property, which is a list of comma-separated strings that describe each Web service extension that is installed on the server and current state (enabled or disabled) of the extension. For IIS to use an extension, it must exist in the Web Service Extension Restriction List. The Iisext.vbs command line script, which is stored in the Sysvol\system32\ (default Windows\System32) directory, can be used to add a single file to or remove a single file from the WebSvcExtRestrictionList property on a local or remote computer that is running IIS 6.0. The syntax for doing this is as follows: Add Files: IisExt /AddFile Drive:\Path\FileNameAccess {0|1} ID Deletable {0|1} ShortDesc [/s computer [/u [domain\]user/p password]] Remove Files: IisExt /RmFile Drive:\Path\FileName [/s Computer [/u [Domain\]User [/p Password]]] For information about these parameters, see the
Parameters section at the end of
this article.Add Web Service Extension FilesThis section describes how to add Web service extension files on a local server and a remote server.Add Web Service Extension Files on a Local ServerThe following command adds the file Test.exe to the Web service extension restriction list (WebSvcExtRestrictionList) on the local server. In this example, the Access flag is set to 1 to enable the file on startup, the ID of the Web service extension is Test, and the Deletable flag is set to 0 to prevent the file from being deleted.To add a Web service extension file, change to the Sysvol\System32 folder (the default is Windows\System32) at a command prompt, and then type the following command: iisext /AddFile c:\Source\Test.exe 1 Test 0 Test You receive the following response:
Connecting to server ...Done. Adding extension file complete. Add Web Service Extension Files on a Remote ServerThe following command adds the file Test.dll to the Web service extension restriction list (WebSvcExtRestrictionList) on the remote server. In this example, the Access flag is set to 0 to disable the file on startup, the ID of the Web service extension is Test, and the Deletable flag is set to 1 to allow the file to be deleted. The remote server name is Server1, the domain name is Domain1, and the username and password that are used to complete the task are Administrator:Password11. For more information about these parameters, see the Parameters section at the end of this article.To add a Web service extension file, change to the Sysvol\System32 folder (the default is Windows\System32) at a command prompt, and then type the following command: iisext /AddFile c:\Source\Test.dll 0 Test 1 Test /s Server1 /u Domain1\Administrator /p Password11 You receive the following response:
Connecting to server ...Done. Adding extension file complete. Remove Web Service Extension FilesThis section describes how to remove Web service extension files from a local server and a remote server.Remove Web Service Extension Files from a Local ServerThe following command removes the file entry for Test.dll from the Web service extension restriction list (WebSvcExtRestrictionList) on a local server.At a command prompt, change to the Sysvol\System32 folder (the default is Windows\System32), and then type the following command: iisext /RmFile c:\Source\Test.dll You receive the following response:
Connecting to server ...Done. Removing extension file complete. Remove Web Service Extension Files from a Remote ServerThe following command removes the file Test.exe from the Web service extension restriction list (WebSvcExtRestrictionList) on a remote computer. In this example, the remote server name is Server1, the domain name is Domain1, and the username and password that are used to complete the task are Administrator:Password11. For more information about these parameters, see the Parameters section at the end of this article.At a command prompt, change to the Sysvol\System32 folder (the default is Windows\System32), and then type the following command: iisext /RmFile c:\Source\Test.exe /s Server1 /u Domain1\Administrator /p Password11 You receive the following response:
Connecting to server ...Done. Removing extension file complete. Parameters
REFERENCESFor additional information, click the article numbers below to
view the articles in the Microsoft Knowledge Base: 328360
(http://support.microsoft.com/kb/328360/EN-US/
)
How To Enable and Disable ISAPI Extensions and CGI Applications in IIS 6.0
328505
(http://support.microsoft.com/kb/328505/EN-US/
)
How To List Web Server Extensions and Extension Files in IIS 6.0
APPLIES TO
| Article Translations
|
Back to the top
