Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I remotely stop a website in IIS7, in Windows 2008, via command line?

share|improve this question

migrated from Jul 30 '09 at 11:13

This question came from our site for professional and enthusiast programmers.

IISReset takes a computer name:

IISReset <Computer> -Stop
share|improve this answer

The easiest way I can think of by using a command line would be to use Powershell remoting and issue the standard iisreset /stop

If you can not use powershell, look at sysinternals PsExec -

This will allow you to use iisreset /stop remotely.

If you do not want either of these two, you can always do it via the gui - download the admin tools - - and right click the computer object, type the computer name and then stop/restart from that.

share|improve this answer

If you want to do this from a remote command line, you could use Microsoft/Sysinternal's PsExec and issue this command:

iisreset -stop

If you want to do that for individual sites, you could use the appcmd tool which was introduced in IIS 7:

appcmd stop site <identifier>

This could also be interesting for remote administration of IIS 7:

Remote Administration for IIS Manager (on

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.