Need to stop/start a specific IIS website (not IIS altogether)

Experts-

How does one stop a specific IIS website by name (not IIS altogether) via the command line? ( I don't need iisreset /stop and /start ). I have a website named "foo.com" that needs to be stopped, and then restarted.

I saw some PoSH listings, but I'm hoping for something more simple...

Thanks.

DataDesignITAsked:
Who is Participating?
 
amit_gConnect With a Mentor Commented:
Assuming IIS6

cscript C:\windows\System32\iisweb.vbs /start "WebSiteName"
cscript C:\windows\System32\iisweb.vbs /stop "WebSiteName"

0
 
cvsayaniCommented:
Came across this as well.  Does anyone know if it does the same as iisweb.vbs?

adsutil STOP_SERVER W3SVC/siteid#
adsutil START_SERVER W3SVC/siteid#
0
 
amit_gCommented:
It would do the same but is not same as IISWeb.vbs.

http://msdn.microsoft.com/en-us/library/ms525006.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.