Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2007-07-25
3
Medium Priority
?
2,468 Views
Last Modified: 2009-04-24
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.

0
Comment
Question by:DataDesignIT
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
amit_g earned 2000 total points
ID: 19569216
Assuming IIS6

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

0
 

Expert Comment

by:cvsayani
ID: 24226940
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
 
LVL 58

Expert Comment

by:amit_g
ID: 24227342
It would do the same but is not same as IISWeb.vbs.

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

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
What You Need to Know when Searching for a Webhost Provider
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question