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
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.
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
add a comment |
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.
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
add a comment |
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.
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
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.
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
iis iis-7 command-line-interface iis-7.5
asked Oct 8 '11 at 14:16
KjensenKjensen
34281936
34281936
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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
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 thatstart
andstop
commands work individually, but not through piping.
– dotNET
Mar 1 '16 at 14:30
@dotNET I suppose that Wesley had in mind eitherstart
orstop
, 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
add a comment |
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...
add a comment |
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>
iisweb is no longer used in IIS 7 and beyond.
– Wesley
Oct 9 '11 at 0:02
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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 thatstart
andstop
commands work individually, but not through piping.
– dotNET
Mar 1 '16 at 14:30
@dotNET I suppose that Wesley had in mind eitherstart
orstop
, 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
add a comment |
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
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 thatstart
andstop
commands work individually, but not through piping.
– dotNET
Mar 1 '16 at 14:30
@dotNET I suppose that Wesley had in mind eitherstart
orstop
, 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
add a comment |
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
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
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 thatstart
andstop
commands work individually, but not through piping.
– dotNET
Mar 1 '16 at 14:30
@dotNET I suppose that Wesley had in mind eitherstart
orstop
, 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
add a comment |
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 thatstart
andstop
commands work individually, but not through piping.
– dotNET
Mar 1 '16 at 14:30
@dotNET I suppose that Wesley had in mind eitherstart
orstop
, 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
add a comment |
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...
add a comment |
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...
add a comment |
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...
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...
answered Oct 10 '11 at 1:51
TristanKTristanK
8,29812131
8,29812131
add a comment |
add a comment |
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>
iisweb is no longer used in IIS 7 and beyond.
– Wesley
Oct 9 '11 at 0:02
add a comment |
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>
iisweb is no longer used in IIS 7 and beyond.
– Wesley
Oct 9 '11 at 0:02
add a comment |
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>
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>
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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