Microsoft Internet Security and Acceleration Server 2000

Disabling a Filter

The following examples show how to disable a filter.

Visual Basic Example

Use the following Visual Basic code to disable an ISA Web filter:

Set objWebFilter = objFPC.Arrays.GetContainingArray.Extensions.WebFilters.Item(Guid)
	objWebFilter.Enabled = False

Visual Basic Scripting Edition Example

To disable a filter with a known GUID, create a file called Disable.vbs, and then insert the following code:

set FPC = WScript.CreateObject("FPC.Root")
Set filters = FPC.Arrays.GetContainingArray.Extensions.WebFilters
Set mfilter = filters("{5b6f6af3-3928-44a3-90f6-c96295c51da6}")
mfilter.Enabled = False
WScript.Echo "done"