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

Posted on 2007-07-25
Last Modified: 2009-04-24

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 "" that needs to be stopped, and then restarted.

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


Question by:DataDesignIT
    LVL 58

    Accepted Solution

    Assuming IIS6

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


    Expert Comment

    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#
    LVL 58

    Expert Comment

    It would do the same but is not same as IISWeb.vbs.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Scale it in WD Gold

    With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now