Follow the easy steps to do that:-
1.Type cmd into the start menu search box, and use Ctrl+Shift+Enter to open in administrator mode.
2.Now Type the following
And then Press Enter and also Type
And Press enter just to be on the safer Side
A restart required .....
Now
3. Open
Control Panel and type in "Hibernate" in the Search.
4. Click "Turn hibernation
on or off"
5. Click "Change advance
power settings"
6. Scroll to and expand the "
Sleep" option.
7. Select "Off" to the "
Allow hybrid sleep" option.
8. Scroll to and expand the "
Power buttons and lid" option.
9. Select "Hibernate" for the "
Sleep button action" option.
10. Finally,Select "Hibernate" for the "
Start menu power button" option. Done
Hope this helps u