Unfortunately,there is no inbuilt option in Windows using which you can control the power settings of your PC. Windows only gives you options to Shut-down, Hibernate, Restart, Logoff etc. but there is no option available by which you can make all these options flexible and automated. You have to manually perform the above desired task.
But if you want to schedule your PC according to your needs i.e schedule when it should shut-down and when it should start up again and also prevent it from going to hibernate or sleep mode when it is acting as server over network and whole network is dependent on it, then a simple solution is by using small tool named SmartPower.
As the name suggests, it is a nifty utility using which you can configure the power settings of you computer and the can save both the energy and money. This light weight application has a very simple graphical interface and it is even very simple to use.
This is the main window of this utility. At the top you can see a option with drop box named Target Power state. There are two options available i.e Hibernate and Shutdown. The first option available on main window is schedule. This option allows you to schedule automatic power turn on and off settings for everyday. To configure its settings, click on Add given at bottom of screen.
Here you are required to click on days one by one and then choose timings for each of them one by them. Click on Save when you are done with all the settings. You can edit or delete any of these settings by simply clicking on shortcuts given in main screen. The next option is devices. Put a tick mark on this option if you want your PC to remain on whenever there are one or more devices online over your network.
The next two options are Network and CPU. In both these options you can put a tick mark if you want your PC to remain on whenever network or CPU respectively is working over a threshold limit. Threshold limit is basically some minimum value which you can customize according to your requirements. Network throughput (the bytes flowing through a particular interface) is configurable threshold in Network and CPU usage is a configurable threshold in CPU.
The last option is Process. You can tick on checkbox if you want to Stay on whenever any process which is any windows application or Process is running. Overall SmartPower is a great free utility to schedule the power state of your PC and create rules that prevents happening of Hibernate, Suspend or Shutdown of your PC and it even takes minimal resources of your system.
The size of SmartPower is just 556 Kb and as usual it will pin itself in start menu from where you can access this freeware. This tool is compatible with windows XP or later and requires .NET Framework 3.5 or above and has been tested successfully on Windows 7 Ultimate-32 bit edition with .Net Framework 4.