Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Any of the following goes as non interactive for me:

  • Command line silent installation
  • Script file
  • Code (.NET, C, VB, whatever)



I'd like to stress, that I wish to install the module responsible for the dynamic content compression. This is different from configuring the dynamic content compression after the respective module has already been installed.

share|improve this question
up vote 5 down vote accepted


C:\Windows\System32\Inetsrv\Appcmd.exe set config -section:urlCompression -doStaticCompression:true -doDynamicCompression:true
C:\Windows\System32\Inetsrv\Appcmd.exe set config -section:httpCompression -[name='gzip'].staticCompressionLevel:9 -[name='gzip'].dynamicCompressionLevel:4


cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/site#/root/DoStaticCompression False
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/site#/root/DoDynamicCompression False
share|improve this answer
Not quite. This stuff is only valid if the dynamic content compression module has already been installed, see I want to know how to install it non interactively, rather than configure after it is already there. – mark Jun 21 '11 at 18:28
In IIS7 you can do it with the following command line command: "start /w pkgmgr /iu:HttpCompressionStatic;IIS-HttpCompressionDynamic". IIS6 does have it automatically so it's a non-issue there. – Scott Forsyth - MVP Jun 21 '11 at 20:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.