IIsWebService.AddExtensionFile (WMI)

The AddExtensionFile method adds a new ISAPI extension or CGI application to the IIS server by adding a corresponding entry to the WebSvcExtRestrictionList metabase property.

Note

This method is only available on IIS 6.0 or later.

objIIsWebService.AddExtensionFile(
      ExtensionFile,
      bEnable,
      GroupID,
      bCanDelete,
      Description
)

Parameters

  • ExtensionFile
    [in] String containing the file to add. This is the second token, ExtensionPath, in the WebSvcExtRestrictionList metabase property.

  • bEnable
    [in] Boolean containing True if the extension is enabled, False if disabled. This is the first token, AllowDenyFlag, in the WebSvcExtRestrictionList metabase property.

  • GroupID
    [in] String containing the group name. This is the fourth token, GroupID, in the WebSvcExtRestrictionList metabase property.

  • bCanDelete
    [in] Boolean containing True if the extension can be deleted in IIS Manager, otherwise False. This is the third token, UIDeletableFlag, in the WebSvcExtRestrictionList metabase property.

  • Description
    [in] String containing the friendly name or a short description of the extension. This is the fifth token, ApplicationName, in the WebSvcExtRestrictionList metabase property.

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also

Concepts

IIsWebService (WMI)

Using WMI to Configure IIS

WebSvcExtRestrictionList

ApplicationDependencies

Adding Web Service Extensions to the Restriction List

Installing and Uninstalling CGI and ISAPI Extensions