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

I am trying to set SSL Host Headers and Secure Site Bindings in IIS7. I followed the directions on this website (among others), but when I run the appcmd command mentioned, I get the error "Object 'SET' is not supported. Run 'appcmd.exe /?' to display supported objects". I have also tryed "appcmd site set" but it still returns the same error. What am I doing wrong?

The server I am working on is Windows 2008 R2 x64, if that matters.

Thank you.

share|improve this question
@RHPT: can you add the actual command line you are using (anonymizing it as necessary). That would be helpful in debugging the problem. – MattB Apr 16 '10 at 14:10
Sure, here you go appcmd set site /"Name of Website in IIS" /+bindings.[protocol='https',bindingInformation='*:443:Host Header'] – RHPT Apr 18 '10 at 3:05
That looks like the example text, not the actual command you are using. (It shouldn't make a difference, but it could.) – MattB Apr 19 '10 at 13:08

You get the error "Object 'SET' is not supported" because the you are using appcmd site set. i.e. the "site and set" parameters are the wrong way around. The following command should work:

appcmd set site / "Name of Site" /+bindings.protocol='https',bindingInformation='*:443:NewHostHeader']

Also, to modify and existing host header you are do:

appcmd set site / "Name of Site" /bindings.[protocol='http',bindingInformation='*:80:OldHostHeader'].bindingInformation:*:80:NewHostHeader

AppCmd.exe is located in the %systemroot%\system32\inetsrv\ directory. And is available for IIS 7.0 and later.

share|improve this answer
APPCMD SITE SET is syntax supported by APPCMDUI, but not by APPCMD itself. APPCMDUI magically reorders parameters to make them work with intellisense-like behaviour, then fixes them before running them. – TristanK Oct 21 '11 at 0:39

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.