I don’t know about you, but I find it hassle having to navigate to the Windows Services list in order to stop and start IIS at will:

Start Menu -> Control Panel -> Administrative Tools -> Services

Windows Services Dialog

So, how can we do this quickly without all the fiddly and tedious navigation. Easy! Simply use these command-line commands:

Stop:
net stop iisadmin

Stop All Dependent Services:
net stop iisadmin /y

Start:
net start w3svc

Kill

This lead me to another annoying problem in that the W3SVC service acutally got stuck stopping. I sumbled upon some useful information on killing the process completely. Simply use the TaskKill command.

Taskkill /F /FI "SERVICES eq w3svc"
Taskkill /F /FI "SERVICES eq iisadmin"

Ater this the services may be displayed as being started, so be sure to stop them again.

, , ,
Trackback

no comment untill now

Add your comment now