Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 know how to reference a site by name to stop and start it? For example:

appcmd stop site /"Microsoft SharePoint Administration"

How do I reference a site using its IIS ID? I tried these variations:

appcmd start stop /
appcmd start stop /"2"
appcmd start stop /
appcmd start site /section:sites /[id='2']

However they all return the following error:

ERROR ( message:Must specify the SITE object with identifier. )

share|improve this question
up vote 2 down vote accepted

Hmm - this works:

appcmd.exe list site -id:2

This doesn't:

appcmd.exe stop site -id:2
share|improve this answer
Annoying isn't it? – Kev Sep 2 '09 at 18:02

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.