IIS6 Compression: other tidbits
Posted by mikeg on April 22, 2008
A few other useful tidbits about IIS6 and compression:
- You can enable compression per site using the following commands:
disable compression:
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoStaticCompression False
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoDynamicCompression Falseenable compression:
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoStaticCompression True
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoDynamicCompression True
One way to find the {sitenumber} is to search for “header” within metabase. I searched for “staging.reviewbasics.com”. That’s the header binded to the website I am looking for

- Disable compression on a specific file (from here):
First, to create a node for the page in the metabase, I right click on the file and go to properties. Make a change of some sort, apply, then change it back.
Then, from the command prompt enter:
“cscript C:\Inetpub\AdminScripts\adsutil.vbs set W3SVC/{siteID}/Root/{subfolder}{page.asp}/DoDynamicCompression False”
- Metabase Explorer
- http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en
- There are a number of other useful tools in this Resource Kit; descriptions can be found here: http://support.microsoft.com/kb/840671#3
- Scott mentions that in his experience compression introduces less than 5% overhead
- Available tools that simplify configuration, provide additional functionality: