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 - Тарых жана география Навигация менюсу

                    Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                    Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070