In Windows 10, the computer uses the hiberfil.sys file to store a copy of the system memory on the hard disk when the hibernation setting is activated. To disable hibernation, launch an elevated command prompt and enter the command:
powercfg /h off
The feature can be re-enabled by the same command.
powercfg /h on