How to Disable Hibernation on Windows
In this article
Disabling hibernation stops Windows from saving your open programs and documents to disk before shutting down, which removes the hiberfil.sys file from your system drive and frees up several gigabytes of space. It also removes the Hibernate option from the power menu and can prevent certain wake-from-sleep issues. You do not need any special tools or technical expertise—just an administrator account and a few minutes. The steps below apply to Windows 10 and Windows 11; the commands are identical on both.
What You'll Need
- A Windows 10 or Windows 11 PC.
- An account with administrator privileges (you'll be prompted for permission).
- Command Prompt or PowerShell—both are built into Windows.
- Optional: a note of how much disk space you expect to reclaim (hiberfil.sys is typically 40–60% of your installed RAM).
Step-by-Step
- Open an elevated command prompt. Click the Start button, type
cmdorCommand Prompt, then right-click the result and choose Run as administrator. Accept the User Account Control prompt. On Windows 11 you can also right-click the Start button and select Terminal (Admin) or Windows Terminal (Admin). - Check the current hibernation status (optional). Type
powercfg /aand press Enter. The output lists the sleep states available on your PC. If “Hibernate” appears under “The following sleep states are available,” hibernation is currently enabled. - Disable hibernation. Type
powercfg /hibernate offand press Enter. You should see no confirmation message—the command returns silently when it succeeds. This single command both turns off hibernation and deletes the hiberfil.sys file from the root of your system drive. - Verify the change. Run
powercfg /aagain. “Hibernate” should now be listed under “The following sleep states are not available,” usually with a note that hibernation has not been enabled. You can also check File Explorer: with hidden files visible, hiberfil.sys should be gone from C:\ . - Check the Power menu. Open the Start menu, click the power icon, and confirm that Hibernate no longer appears. (If you use Fast Startup, see the note below—disabling hibernation also disables Fast Startup.)
- Close the command prompt. No restart is required for the change to take effect, though a restart can help if you notice any odd power-menu behaviour.
Common Mistakes
- Running the command without administrator rights. A standard command prompt will return an “Access is denied” or “You do not have permission” error. Always use Run as administrator.
- Typing the command incorrectly. The syntax is
powercfg /hibernate off(or the shorterpowercfg /h off). A missing space or a misspelled switch produces an “Invalid parameter” message and no change. - Expecting a confirmation message. The command is silent on success. Many people assume it failed because nothing was printed—verify with
powercfg /ainstead. - Forgetting that Fast Startup depends on hibernation. On many systems, disabling hibernation also turns off Fast Startup, which can slightly increase boot time. This is normal, not a bug.
- Looking for hiberfil.sys in the wrong place. The file sits in the root of the system drive (usually C:\) and is hidden and protected. Enable “Hidden items” in File Explorer's View tab to see it before you disable hibernation.
- Assuming the change affects other power settings. Disabling hibernation does not change sleep, display timeout, or power plan settings. Those remain as they were.
Tips
- If you only want to reclaim disk space but keep hibernation available, you can shrink the hibernation file instead of removing it:
powercfg /hibernate /size 50sets it to roughly 50% of RAM. Values below 40 are not supported on most systems. - To re-enable hibernation later, run
powercfg /hibernate onin an elevated prompt. The hiberfil.sys file will be recreated on the next shutdown or restart. - On laptops, consider whether you rely on hibernation to preserve battery during long periods of sleep. Without it, a fully drained battery means unsaved work is lost.
- If you use a desktop with a UPS, hibernation can be a useful safeguard during power events. Weigh the disk-space savings against that benefit.
- Run
powercfg /hibernate /type reducedbefore disabling if you want to keep Fast Startup but remove full hibernation. This creates a smaller hiberfil.sys and keeps the fast boot behaviour.
Troubleshooting
“Access is denied” or “You do not have permission to perform this action.” You are not running the command prompt as administrator. Close it, reopen with Run as administrator, and try again.
“Invalid parameter” or the command does nothing. Check for typos. The correct forms are powercfg /hibernate off and powercfg /h off. Ensure you are using a forward slash, not a backslash.
Hibernate still appears in the power menu. Some systems require a restart for the menu to update. If it persists, run powercfg /a to confirm the state, and check that no third-party power management utility is overriding the setting.
hiberfil.sys is still present. The file may be locked by Fast Startup or a pending update. Restart the PC and run the command again. If it remains, check that you are looking at the system drive and that hidden protected operating system files are visible.
The command reports success but disk space is unchanged. Run Disk Cleanup or check the drive's free space after a restart. In rare cases, a system restore point or shadow copy may hold a reference to the file until the next cleanup cycle.
You cannot re-enable hibernation later. Ensure you are using an elevated prompt and that the system drive has enough free space for the hiberfil.sys file (roughly 40–60% of RAM). If the drive is nearly full, free space first.
Frequently Asked Questions
Does disabling hibernation delete my files or programs?
No. It only removes the hibernation file and the ability to hibernate. Your documents, applications, and personal files are untouched.
Will disabling hibernation affect sleep mode?
No. Sleep (also called standby) is a separate power state and remains available. Only hibernation and, on many systems, Fast Startup are affected.
How much disk space will I save?
The hiberfil.sys file is typically 40–60% of your installed RAM. On a PC with 16 GB of RAM, expect to reclaim roughly 6–10 GB, depending on your configuration.
Can I disable hibernation on a laptop?
Yes, the command works the same on laptops. Keep in mind that without hibernation, a laptop that fully drains its battery will lose unsaved work rather than restoring it from disk.
Is it safe to disable hibernation?
Yes. It is a standard Windows power setting and does not harm the system. You can re-enable it at any time with powercfg /hibernate on.
Why did Fast Startup disappear after I disabled hibernation?
Fast Startup uses the hibernation file to speed up booting. When hibernation is turned off, Fast Startup is automatically disabled as well. Re-enabling hibernation restores the option.