Here is how, first thing first,
In Windows 7, click Start, or in Windows 8, go to the Search charm. Once there, type
How many options you’ll find will depend on your computer. If you have a desktop, you can assign actions to the Power button and the Sleep button.power
, and select Power Options. In the resulting Control Panel window’s left pane, select Choose what the power buttons do.If you have a laptop, you’ll also have a “When I close the lid” option, and you’ll have all three options twice—for On battery and Plugged in
The Power button, of course, is the one you press when you turn on your PC. You may or may not have a sleep button on your keyboard. To find out, look for a key with a crescent-moon icon. With a laptop, Sleep probably involves holding down the Fn key while you press another key. If you can’t find a Sleep key on your keyboard, check the keyboard documentation to see if there’s a way to reassign another key for that purpose. It’s possible that you simply don’t have that option.
cmd
, right-click cmd.exe,and select Run as administrator. In Windows 8, go to the Search charm, type cmd
, right-click Command Prompt and select Run as administrator.
At the resulting command prompt, type
powercfg -hibernate off
then press enter... that's it I hope it works....