Microsoft Internet Security and Acceleration Server 2000 |
The following examples show how to disable a filter.
Use the following Visual Basic code to disable an ISA Web filter:
Set objWebFilter = objFPC.Arrays.GetContainingArray.Extensions.WebFilters.Item(Guid) objWebFilter.Enabled = False objWebFilter.Save
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 mfilter.Save WScript.Echo "done"