Enable hibernate on Windows 7

If you have no hibernate option next to the shutdown button on Windows7, here are the
steps you need to enable it:

Run a command prompt as Administrator:
Programs -> Accessories -> Command Prompt -> left click -> Run As Administrator

Type the following command:
powercfg /hibernate on

If required, apply the following configuration:
Control Panel -> Power Options -> Change when the computer sleeps -> Change advanced power settings -> Sleep -> Allow hybrid sleep -> Setting: OFF

Now the button for hibernate should be available.