Monday, August 31, 2009

Wake on LAN: A step by step guide for Windows Users

Sometimes it is extremely useful to be able to turn on your PC remotely. For example, you may be out of the office with some urgent work to do, and although you have VPN access, being the environmentally conscious person you are, you switched your PC off and now can't get access to it.
Well, provided you can gain access to another machine on the network, the steps below will show you how to get around this. This is a first draft, so any comments, additions or questions are openly welcome and encouraged.

1. Download some WOL software. If you don't have admin rights and you can't install it, you need to find one that's an exe that runs without installation. A great one can be found here.

2. Open a command prompt (Click Start, Run and type 'cmd' and press enter)

3. Type

nslookup

and press enter

4. Type

computername.domain.local

where computername.domain.local is your computer name, and press enter. If you don't have the fully qualified name of the computer (e.g. the domain.local bit), you can try it without this; it should still work.

5. This will give you your computer's IP address. Write this down.

6. Type

exit

and press enter. This will take you out of nslookup and back to the command prompt.

7. Type

arp -a xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the IP address you wrote down in step 5.

8. This will display a one line table of information. Write down the 12 digit entry under Physical Address.

9. Keep your command prompt open; you will use this later.

10. Run your WOL software. It will ask you for the IP address and physical (MAC or Ethernet) address. Enter these using the information you wrote down in steps 6 and 8, and click 'Go' or whatever the option is to send the WOL request.

11. Go back to the command prompt. Type

ping xxx.xxx.xxx.xxx -t

where xxx.xxx.xxx.xxx is the IP address of your computer, and press enter.

12. Keep an eye on this for 5 minutes or so. If over that period the output changes from

Request timed out

to

Reply from xxx.xxx.xxx.xxx...

then your WOL attempt was succesful and you have turned on your PC. If however after this time the output still says Request timed out, then your attempt to turn on your PC has not been succesful. If you want to continue watching it for a while, then you can do, but at this stage it's safe to assume the attempt has failed.

13. Press 'ctrl-c' to end the ping. Type

exit

and press enter to close the command prompt.