How do I restart a single website in IIS7+ using commandline?How can I troubleshoot why my IIS7 site is not gzip compressing?How do I add a querystring to a default document in iis7?IIS Manager - Connect to Another Server (Win7 to Win2008 server)IIS 7 - Application poolswildcard host name bindings for multiple subdomains in multiple sites on IIS7 with a single IP addressHow to configure IIS 7.5 without restart + call a batch file on every ASP.NET restartDo I need to recycle web server after modifying hgrc?Is IIS Advanced Logging faster than ODBC logging?Configuring IIS to use multiple application pools for a single websiteWebsite not working in IIS 7 using the IIS Manager

iPad being using in wall mount battery swollen

Ambiguity in the definition of entropy

GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?

Can the Meissner effect explain very large floating structures?

What type of content (depth/breadth) is expected for a short presentation for Asst Professor interview in the UK?

Why can't we play rap on piano?

How could indestructible materials be used in power generation?

How to prevent "they're falling in love" trope

What does the expression "A Mann!" means

How do I handle a potential work/personal life conflict as the manager of one of my friends?

Alternative to sending password over mail?

What is a romance in Latin?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

What exploit Are these user agents trying to use?

Why is consensus so controversial in Britain?

How to tell a function to use the default argument values?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

How do I gain back my faith in my PhD degree?

Im going to France and my passport expires June 19th

How does a predictive coding aid in lossless compression?

What's the in-universe reasoning behind sorcerers needing material components?

Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?

Can I run a new neutral wire to repair a broken circuit?

Is "remove commented out code" correct English?



How do I restart a single website in IIS7+ using commandline?


How can I troubleshoot why my IIS7 site is not gzip compressing?How do I add a querystring to a default document in iis7?IIS Manager - Connect to Another Server (Win7 to Win2008 server)IIS 7 - Application poolswildcard host name bindings for multiple subdomains in multiple sites on IIS7 with a single IP addressHow to configure IIS 7.5 without restart + call a batch file on every ASP.NET restartDo I need to recycle web server after modifying hgrc?Is IIS Advanced Logging faster than ODBC logging?Configuring IIS to use multiple application pools for a single websiteWebsite not working in IIS 7 using the IIS Manager













11















How do I restart a single website in IIS7+ using commandline only?



Same functionality as the circled menu item in the image - but from the commandline.



enter image description here



Iisreset does not have any options to deal with individual files, and I found some ancient references to Iisweb.vbs, which seems to be outdated.










share|improve this question


























    11















    How do I restart a single website in IIS7+ using commandline only?



    Same functionality as the circled menu item in the image - but from the commandline.



    enter image description here



    Iisreset does not have any options to deal with individual files, and I found some ancient references to Iisweb.vbs, which seems to be outdated.










    share|improve this question
























      11












      11








      11


      2






      How do I restart a single website in IIS7+ using commandline only?



      Same functionality as the circled menu item in the image - but from the commandline.



      enter image description here



      Iisreset does not have any options to deal with individual files, and I found some ancient references to Iisweb.vbs, which seems to be outdated.










      share|improve this question














      How do I restart a single website in IIS7+ using commandline only?



      Same functionality as the circled menu item in the image - but from the commandline.



      enter image description here



      Iisreset does not have any options to deal with individual files, and I found some ancient references to Iisweb.vbs, which seems to be outdated.







      iis iis-7 command-line-interface iis-7.5






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 8 '11 at 14:16









      KjensenKjensen

      34281936




      34281936




















          3 Answers
          3






          active

          oldest

          votes


















          16














          What you are looking for is the appcmd command. Take a look at its TechNet manual.



          To list your sites out:



          %windir%system32inetsrvappcmd list site



          To restart your site, stop it and then start it:



          appcmd start site /site.name:string



          or



          appcmd stop site /site.name:string






          share|improve this answer

























          • Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

            – Crab Bucket
            Sep 15 '15 at 10:03











          • Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

            – dotNET
            Mar 1 '16 at 14:30











          • @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

            – laika
            Jan 24 at 11:48






          • 1





            @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

            – dotNET
            Jan 24 at 13:44


















          4














          I'd personally suggest not stopping and starting sites, but recycling the associated Application Pool.



          This should be closer to imperceptible for end users, while a stop/start will probably produce 503s while the site's down.



          APPCMD LIST WP



          APPCMD RECYCLE WP



          are the command-line versions of this...






          share|improve this answer






























            -1














            List your existing web sites with:



            C:> iisweb.vbs /query


            and you can then restart a specific website by executing:



            C:> iisweb.vbs /stop <website> && iisweb.vbs /start <website>





            share|improve this answer























            • iisweb is no longer used in IIS 7 and beyond.

              – Wesley
              Oct 9 '11 at 0:02











            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f319725%2fhow-do-i-restart-a-single-website-in-iis7-using-commandline%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            16














            What you are looking for is the appcmd command. Take a look at its TechNet manual.



            To list your sites out:



            %windir%system32inetsrvappcmd list site



            To restart your site, stop it and then start it:



            appcmd start site /site.name:string



            or



            appcmd stop site /site.name:string






            share|improve this answer

























            • Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

              – Crab Bucket
              Sep 15 '15 at 10:03











            • Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

              – dotNET
              Mar 1 '16 at 14:30











            • @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

              – laika
              Jan 24 at 11:48






            • 1





              @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

              – dotNET
              Jan 24 at 13:44















            16














            What you are looking for is the appcmd command. Take a look at its TechNet manual.



            To list your sites out:



            %windir%system32inetsrvappcmd list site



            To restart your site, stop it and then start it:



            appcmd start site /site.name:string



            or



            appcmd stop site /site.name:string






            share|improve this answer

























            • Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

              – Crab Bucket
              Sep 15 '15 at 10:03











            • Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

              – dotNET
              Mar 1 '16 at 14:30











            • @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

              – laika
              Jan 24 at 11:48






            • 1





              @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

              – dotNET
              Jan 24 at 13:44













            16












            16








            16







            What you are looking for is the appcmd command. Take a look at its TechNet manual.



            To list your sites out:



            %windir%system32inetsrvappcmd list site



            To restart your site, stop it and then start it:



            appcmd start site /site.name:string



            or



            appcmd stop site /site.name:string






            share|improve this answer















            What you are looking for is the appcmd command. Take a look at its TechNet manual.



            To list your sites out:



            %windir%system32inetsrvappcmd list site



            To restart your site, stop it and then start it:



            appcmd start site /site.name:string



            or



            appcmd stop site /site.name:string







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 2 days ago









            Nacht

            22219




            22219










            answered Oct 8 '11 at 22:09









            WesleyWesley

            29.3k867113




            29.3k867113












            • Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

              – Crab Bucket
              Sep 15 '15 at 10:03











            • Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

              – dotNET
              Mar 1 '16 at 14:30











            • @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

              – laika
              Jan 24 at 11:48






            • 1





              @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

              – dotNET
              Jan 24 at 13:44

















            • Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

              – Crab Bucket
              Sep 15 '15 at 10:03











            • Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

              – dotNET
              Mar 1 '16 at 14:30











            • @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

              – laika
              Jan 24 at 11:48






            • 1





              @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

              – dotNET
              Jan 24 at 13:44
















            Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

            – Crab Bucket
            Sep 15 '15 at 10:03





            Just a note - i was in the iisexpress directory (cd Program FilesIIS Express) and was baffled as to where the start option had gone. Make sure you are actually using the correct web server i.e. C:WindowsSystem32inetsrv fo IIS. Just to avoid others making my mistake

            – Crab Bucket
            Sep 15 '15 at 10:03













            Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

            – dotNET
            Mar 1 '16 at 14:30





            Any thought why the above command would give me 'stop' is not recognized as an internal or external command, operable program or batch file.? I have verified that start and stop commands work individually, but not through piping.

            – dotNET
            Mar 1 '16 at 14:30













            @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

            – laika
            Jan 24 at 11:48





            @dotNET I suppose that Wesley had in mind either start or stop, rather than piping.

            – laika
            Jan 24 at 11:48




            1




            1





            @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

            – dotNET
            Jan 24 at 13:44





            @laika: aaah... sometimes we become so blind. It is so obvious now that I look at it. Thanks for pointing out. It was years ago though, don't even remember what I was doing. :)

            – dotNET
            Jan 24 at 13:44













            4














            I'd personally suggest not stopping and starting sites, but recycling the associated Application Pool.



            This should be closer to imperceptible for end users, while a stop/start will probably produce 503s while the site's down.



            APPCMD LIST WP



            APPCMD RECYCLE WP



            are the command-line versions of this...






            share|improve this answer



























              4














              I'd personally suggest not stopping and starting sites, but recycling the associated Application Pool.



              This should be closer to imperceptible for end users, while a stop/start will probably produce 503s while the site's down.



              APPCMD LIST WP



              APPCMD RECYCLE WP



              are the command-line versions of this...






              share|improve this answer

























                4












                4








                4







                I'd personally suggest not stopping and starting sites, but recycling the associated Application Pool.



                This should be closer to imperceptible for end users, while a stop/start will probably produce 503s while the site's down.



                APPCMD LIST WP



                APPCMD RECYCLE WP



                are the command-line versions of this...






                share|improve this answer













                I'd personally suggest not stopping and starting sites, but recycling the associated Application Pool.



                This should be closer to imperceptible for end users, while a stop/start will probably produce 503s while the site's down.



                APPCMD LIST WP



                APPCMD RECYCLE WP



                are the command-line versions of this...







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 10 '11 at 1:51









                TristanKTristanK

                8,29812131




                8,29812131





















                    -1














                    List your existing web sites with:



                    C:> iisweb.vbs /query


                    and you can then restart a specific website by executing:



                    C:> iisweb.vbs /stop <website> && iisweb.vbs /start <website>





                    share|improve this answer























                    • iisweb is no longer used in IIS 7 and beyond.

                      – Wesley
                      Oct 9 '11 at 0:02















                    -1














                    List your existing web sites with:



                    C:> iisweb.vbs /query


                    and you can then restart a specific website by executing:



                    C:> iisweb.vbs /stop <website> && iisweb.vbs /start <website>





                    share|improve this answer























                    • iisweb is no longer used in IIS 7 and beyond.

                      – Wesley
                      Oct 9 '11 at 0:02













                    -1












                    -1








                    -1







                    List your existing web sites with:



                    C:> iisweb.vbs /query


                    and you can then restart a specific website by executing:



                    C:> iisweb.vbs /stop <website> && iisweb.vbs /start <website>





                    share|improve this answer













                    List your existing web sites with:



                    C:> iisweb.vbs /query


                    and you can then restart a specific website by executing:



                    C:> iisweb.vbs /stop <website> && iisweb.vbs /start <website>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 8 '11 at 14:35









                    quantaquanta

                    43.3k15114196




                    43.3k15114196












                    • iisweb is no longer used in IIS 7 and beyond.

                      – Wesley
                      Oct 9 '11 at 0:02

















                    • iisweb is no longer used in IIS 7 and beyond.

                      – Wesley
                      Oct 9 '11 at 0:02
















                    iisweb is no longer used in IIS 7 and beyond.

                    – Wesley
                    Oct 9 '11 at 0:02





                    iisweb is no longer used in IIS 7 and beyond.

                    – Wesley
                    Oct 9 '11 at 0:02

















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f319725%2fhow-do-i-restart-a-single-website-in-iis7-using-commandline%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company