I am looking for a Wake-on-Lan utility that works locally, not via the internet (so no setting up a router for WOL) to allow for waking up AND putting to sleep a machine. I can't seem to find any. I have machines that are running Windows 7 and XP Pro.
As Josip pointed out WOL can wake a computer up.
As for putting a computer to sleep you might look into.
Back Orifice, Teamviewer, and other remote administration tools
Not sure if any of these help but it is a start.
Configure BIOS to use Wake-on-LAN.
NOTE: sometimes the first connection fails, try it at least twice! This is mainly caused by a slow wake up on some PC's.
Do not use any 3rd party software, it is not needed, everything is standard from Windows 7 up.
Wake on LAN protocol cannot put your machine to sleep. It is designed solely to wake machine up.
Programs that offer shutdown of remote machine usually do that through shutdown command (that does not support sleep).
Some program might have it's own custom client (that must be installed on each machine you wish to control) that can perform sleep action. However, i am not aware whether such program currently exists.
As others have said, Wake-on-LAN is not what you're looking for.
However I recently wrote a program that might help you. It can sleep and wake-up your PC according to configurable rules.
You can find more information about it here: http://ignatu.co.uk/SmartPower.aspx
As others have pointed out WOL can not be used for putting the computer the sleep.
Regarding waking the computer up you first need to configure you computer to wake-on-lan. Note that you don't install special software that allows the computer to wake-on-lan but rather enable the option in you computer's network card (NIC), given that it supports WOL. This is normally done either through your BIOS settings or through some software tool (maybe included in the OS). I use the program
Then you need an utility to send the magic packet. I use Depicus' Wake On Lan Command Line tool from my Windows machine.
I recommend Depicus' site and WolCenter.com as excellent sources for WOL info.
(I know this is an old post, just putting the info here for other people's reference)
Wake-on-LAN allows you only to power up remote PC, in case if it’s configured properly. But it can’t shut down PC remotely. Shut down is a task for another tool. If you need to make wake up and shut down you have two options:
First: use command-line tools for WOL and shutdown. Windows includes shutdown.exe utility. You can find a lot of free WOL command-line implementations.
Second: use commercial tool for power management. I can recommend EMCO Remote Shutdown. It has nice UI and can operate with multiple PCs to run WOL, shutdown, reboot and other tasks on schedule.