Archive

Posts Tagged ‘windows2008’

how to use the servemanagercmd

17 June 2008 Leave a comment

once you’ve installed your Windows 2008 server, you would like to install a set of roles/services/features that you haven’t by default.

And then, you would like to do it via a commandline, to tell the same thing to other people, perhaps working in your services.

Well, here’s the black magic explained:

http://technet2.microsoft.com/windowsserver2008/en/library/e7edce1d-442c-4ec3-b324-c748e4f937551033.mspx?mfr=true

I love the -whatif option.

http://technet.microsoft.com/en-us/magazine/cc194390(TechNet.10).aspx

Advertisement

how to enable the compression on IIS7

13 June 2008 Leave a comment

OK, the static compression is already enabled by default. But when you need to compress the Document Manager pages, you need the dynamic compression.

So, you may proceed as follows:

install the Dynamic compression feature for your IIS role (I am speaking about Windows 2008, so…)

type the command

%systemroot%\System32\inetsrv\appcmd set config -section:urlCompression /doDynamic
Compression:true

and then, if you do not like 7 (default) as compression level, you can change it with

%windir%\system32\inetsrv\appcmd.exe set config -section:httpCompression -[name='gzip'].dynamicCompressionLevel:<value>

%windir%\system32\inetsrv\appcmd.exe set config -section:httpCompression -[name='gzip'].staticCompressionLevel:<value>

as a reference:

IIS.NET blog

IIS.NET forum thread