Enable / Disable Hibernation in Windows 10

Type the following command in CMD and press Enter. This will turn on the Hibernation
powercfg -h on

To turn it off use the following code –
powercfg -h off