up vote 2 down vote favorite
share [g+] share [fb]

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. )

link|improve this question

feedback

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
link|improve this answer
Annoying isn't it? – Kev Sep 2 '09 at 18:02
feedback

Your Answer

 
or
required, but never shown

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