Check your computer's manual to see whether it supports "Wake on LAN" or "Wake on alarm" or similarly-named features. These are features of the hardware rather than of Windows, and not all PCs will have them. If your PC supports Wake-on-Alarm then its simply a matter of setting the alarm in the BIOS or UEFI settings (the manual should tell you how to do this.) Wake-on-Lan depends on another PC on your network sending a special "wake up" message to your PC.
Shutting down automatically will be rather simpler. The simplest way would be to create a scheduled task
that runs a batch file containing a command like:
shutdown /h /t 0
The above command, if run from a command-line or in a batch file will hibernate (/h
) the PC after a zero second countdown (/t 0
). Other options for this command include /s
(full shutdown) and /l
(log off the current user). A batch file is a plain-text (e.g. using Notepad) file whose name ends in .cmd rather than .txt.
Another option I found, but haven't used and can't vouch for, is this tool which seems promising: http://dennisbabkin.com/wosb/
Edited by Andrew, 17 January 2013 - 06:57 PM.