Win 10 will not disable hibernate

7

3

I am trying to get rid of the hiberfil.sys file, with no luck.

I tried turning off hibernation in the Settings, with this guide

Turning off "Allow hybrid sleep" did not change anything. Windows doesn't remove the file, and I am not allowed to remove the file.

Typing the powercfg.exe -h off command also did not change anything. I get an error, Windows doesn't remove the file, and I am not allowed to remove the file.

C:\Users\Cogni>powercfg.exe -h off

Unable to perform operation.  An unexpected error (0x65b) has
occurred:  Function failed during execution.

I tried restarting the computer, still nothing works.

How do I fix this?

Berit Larsen

Posted 2017-04-25T10:47:09.590

Reputation: 179

9Based on my research you will only get that error if you attempt to run the command in a non-elevated command prompt as a user who isn't an Administrator – Ramhound – 2017-04-25T11:18:21.993

Answers

4

Hibernating needs to be off, and only an administrator can change that setting. Then you need to restart to remove the OS's lock on the file, and after the restart, the file is gone.

Aganju

Posted 2017-04-25T10:47:09.590

Reputation: 9 103

2

Right click Command Prompt and then click Run as administrator. Or we could disable it through Control Panel\All Control Panel Items\Power Options\Edit Plan Settings\Change advanced power settings:

Disable Hinbernation

Joy

Posted 2017-04-25T10:47:09.590

Reputation: 99

Such option is unavailable in my computer's Power Options. Why? – Bruno Schiavo – 2018-12-18T10:21:33.190

0

A bit late I know but if you are wondering:

Open a command prompt as an admin and type powercfg /h on

And if you want to revert back: powercfg /h off

Stone

Posted 2017-04-25T10:47:09.590

Reputation: 9

2The question itself contains the command powercfg.exe -h off, and the two-year-old answer states that it must be done with administrator privileges,  so this doesn’t add any information. – Scott – 2019-04-05T21:37:52.830