Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Jul 30 '09 at 11:13

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

3 Answers 3

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 - http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

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 - http://www.iis.net/extensions/AdministrationPack - 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 learn.iis.net)

share|improve this answer

Your Answer


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