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.

, , ,

To launch terminal services from the command line, simply type mstsc

Further options are available at http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ts_cmd_mstsc.mspx?mfr=true

To find out terminal services sessions on a machine: qwinsta /server:computername

Further info: http://weblogs.asp.net/owscott/archive/2003/12/30/Managing-Terminal-Services-Sessions-Remotely.aspx

Additional terminal services command line resources: http://technet.microsoft.com/nl-nl/library/cc725766(WS.10).aspx

,
To connect (e.g) y:\ to \\computer\folder:  net use y: \\computer\folder
To disconnect: net use y: /delete
For more info, type net use /? on the command line