Link to home
Start Free TrialLog in
Avatar of DataDesignIT
DataDesignIT

asked on

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.

ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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#
It would do the same but is not same as IISWeb.vbs.

http://msdn.microsoft.com/en-us/library/ms525006.aspx