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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It would do the same but is not same as IISWeb.vbs.
http://msdn.microsoft.com/en-us/library/ms525006.aspx
http://msdn.microsoft.com/en-us/library/ms525006.aspx
adsutil STOP_SERVER W3SVC/siteid#
adsutil START_SERVER W3SVC/siteid#