At the time of sleeping it is useful for you because if you slept without shutdown tour computer then computer make lot of consumption ,to avoid that problem do this as follows:
- Intially open "Control Panel" > "System and Security" >"Administrative Tools" > "Task Scheduler" > "Create Basic Task"
- In the Name box type "Shut down", and in the Description box type "Shut down PC" and click on "Next".
- Choose the Trigger what you want the system to shut down and click "Next"
- Enter date and time and click "Next"
- Choose "Start a program" and click "Next "
- In the Program/script, type C:\Windows\System32\shutdown.exe
- Click on "Finish"
Now your computer will shut down at the date&time you entered , before get shut down a Dialog Box will appear on the screen.