Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know how to reference a site by name to stop and start it? For example:

appcmd stop site /site.name:"Microsoft SharePoint Administration"

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

appcmd start stop /site.id:2
appcmd start stop /site.id:"2"
appcmd start stop /site.id:2
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.