You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing the configuration files directly, or by writing WMI scripts.
To add an ISAPI filter, use the following syntax:
appcmd set config /section:isapiFilters /+[name='
string
',path='
string
',enabled='true|false',enableCache='true|false',preCondition='string']
The variable namestring is the name of the ISAPI filter that you want to add. The variable pathstring is the physical path of the ISAPI filter's .dll file.
Additionally, you can specify values for the optional attributes: enabled, enableCache, and preCondition. By default, the enabled attribute is true, the enableCache attribute is false, and there are no preconditions. If you want to disable the ISAPI filter, specify false for the enabled attribute. If your ISAPI filter is cache friendly to HTTP.sys, which means that the filter does not conditionally reroute URLs for /default.htm to either /default-1.htm or /default-2.htm, you can specify true for the enableCache attribute. Finally, you can include preconditions if your ISAPI filter has certain conditions under which it should run, such as the bitness32 precondition, which specifies that an ISAPI filter should run only in 32-bit worker processes.
For example, to add an ISAPI filter named ResponseFilter, with a .dll file in the .NET Framework version 2.0 directory and a precondition to run only in 32-bit worker processes, type the following at the command prompt, and then press ENTER:
appcmd set config /section:isapiFilters /+[name='
ResponseFilter
',path='%windir%\Microsoft.NET\Framework\v2.0.50727\
responseFilter
.dll',preCondition='bitness32']
For more information about Appcmd.exe, see Appcmd.exe.