Modify an IIS Filter Setting Metabase Property

Demonstration script that modifies a filter setting property (FilterEnabled) in the IIS metabase.

VBScript Code


strComputer = "LocalHost"
Set objIIS = GetObject("IIS://" & strComputer & "/W3SVC/Filters/Compression")\

objIIS.FilterEnabled = FALSE
objIIS.SetInfo