http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q302/9/88.ASP&NoWebContent=1
HOW TO: Programmatically Add or Remove an ISAPI Filter in IIS by Using ADSI
Remove an ISAPI Filter by Using ADSI
The following sample code removes a global filter named "myFilter" from the ISAPI filters list on the master properties of the WWW Publishing service: Dim objFilterProps, objFilters
Dim strLoadOrder
Dim strFilterName
Dim intStartFilt
strFilterName = "myFilter"
Set objFilters = GetObject("IIS://LocalHost/W3SVC/Filters")
strLoadOrder = objFilters.FilterLoadOrder
If strLoadOrder <> "" Then
If Right(strLoadOrder, 1) <> "," Then
strLoadOrder = strLoadOrder & ","
End If
intStartFilt = InStr(strLoadOrder, strFilterName)
strLoadOrder = Mid(strLoadOrder, 1, intStartFilt - 1) & _
Mid(strLoadOrder, intStartFilt + Len(strFilterName) + 1, _
Len(strLoadOrder))
objFilters.FilterLoadOrder= strLoadOrder
objFilters.SetInfo
objFilters.Delete "IIsFilter", strFilterName
End If
Set objFilters = Nothing
Note that to remove the ISAPI filter from memory, you must restart IISADMIN service.