Periodically, I see the following sort of email being broadcast across the department:

Can you please log out of [Some Machine]. I need to restart [SomeService]

Once sent, some kind individual will log out and send an email confirming this. The original correspondent will then log onto the machine and perform the necessary actions before logging out, emailing the original user, who will then log back in.

Hassle, right?

Happily there is a simple shortcut from the service control manager on your local PC.

1. Simply open this up from the control panel (or typing ‘services.msc’ into the ‘run’ dialog available from the start menu).

When it has loaded, if you look at both panes you will see the text ‘Services(local)’.

2. Click on the ‘Services(local)’ item in the list in the left pane and then click ‘Action’ from the main menu (the options in this menu change depending on what you have selected) then click ‘Connect to another computer’.

3. Type in the name of the computer you would like to connect to.

4. Restart the services as you would have done:

This facility isn’t just limited to the service control manager. The following tools/services also allow you to connect remotely in some way:

  • Component Services
  • Computer Management
  • Event Viewer
  • Registry Editor

So next time you want to log onto a box, why not consider whether or not you really need to, and instead use the method above?

, , ,

Short and sweet and to the point. No graphics and no-nonsense.

  • Control Panel -> Programs and Features -> ”Turn Windows Features On Or Of”

(Command line option: Or type “OptionalFeatures.exe” in the Start-Menu (Windows button) ‘Start search’ box to achieve the same effect)

  • Check “Internet Information Services”
  • Wait. (It could well take a few minutes – the last time I did it, it took over 20! – you might think nothing is happening).

Job done!

, , ,

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.

, , ,