我知道如何通過名稱引用站點來停止並啓動它?例如:如何使用IIS7 APPCMD通過ID引用站點?
appcmd stop site /site.name:"Microsoft SharePoint Administration"
如何使用其IIS ID引用網站?我想這些變化:
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']
但是他們都返回以下錯誤:
ERROR (message:Must specify the SITE object with identifier.)
我確實在ServerFault上問過這個問題,但它是其中一個跨越問題的地方(http://meta.stackexchange.com/questions/3823)。 – Kev 2009-09-02 14:14:46