This guide shows you how to turn off hibernation in Windows 10 and Windows 11, which frees up disk space and stops the system from writing large hiberfil.sys files. You will need to use Command Prompt or PowerShell with administrator rights; the whole process takes about two minutes.
What You’ll Need
- A Windows 10 or Windows 11 PC with an administrator account
- Permission to open Command Prompt or PowerShell as administrator
- Knowledge of whether you want to disable hibernation completely or just hide it from the Start menu (explained below)
Step-by-Step
- Open Command Prompt or PowerShell as administrator. Click the Start button, type
cmdorpowershell, right-click the result, and choose Run as administrator. Confirm the User Account Control prompt if it appears. - Type the disable command. In the admin window, type the following exactly and press Enter:
powercfg /h off - Wait for the command to finish. You will see no success message in most cases; the prompt simply returns to a new line. That means it worked.
- Verify hibernation is off. Open File Explorer and go to
C:\. If you previously had hibernation enabled, the filehiberfil.sysshould now be gone or reduced to zero size. You may need to enable View > Hidden items in File Explorer to see it at all. - Check the Start menu power options. Click the battery or power icon and see if Hibernate still appears. If it does, it is just a leftover shortcut; the feature itself is disabled. To remove it from the menu, see the Tips section below.
- Optional: Re-enable hibernation later. If you change your mind, repeat steps 1–2 but type
powercfg /h oninstead.
Common Mistakes
- Running the command without admin rights. If you open a normal Command Prompt, you will get an error like “The requested operation requires elevation.” Always right-click and choose Run as administrator.
- Typing the command wrong. The command is
powercfg /h off— note the space betweenpowercfgand/h, and the space between/handoff. A common typo ispowercfg /hoffwhich fails. - Confusing hibernation with sleep. Disabling hibernation does not disable sleep mode. Your PC will still sleep normally; it just won’t save the RAM contents to disk.
- Expecting an on-screen confirmation. The command is silent when successful. If you see no error, assume it worked and verify by checking the file or the power menu.
Tips
- Check disk space before and after. Run
dir C:\hiberfil.sysin the admin prompt before disabling to see how much space you will reclaim. It is typically 40–75% of your RAM size. - If you only want to hide Hibernate from the Start menu, not disable it: Open Control Panel > Power Options > Choose what the power buttons do. Click “Change settings that are currently unavailable,” then uncheck Hibernate under Shutdown settings. This keeps the feature active but removes the menu entry.
- Use Fast Startup? Consider keeping hibernation. Windows’ Fast Startup feature relies on a partial hibernation file. If you disable hibernation, Fast Startup will stop working and cold boots will take longer.
- For laptops, know the trade-off. Without hibernation, if your battery dies completely while the laptop is asleep, unsaved work may be lost. Hibernation is a safety net for that scenario.
- Use the same command to re-enable. The command
powercfg /h onrecreates the hiberfil.sys file automatically. No reboot is required for the change to take effect, though a reboot is a good idea to confirm everything is stable.
Troubleshooting
- The command says “Access denied” or “Elevation required.” Close the window and reopen it by right-clicking the Command Prompt or PowerShell icon and selecting Run as administrator. If you are on a work or school PC, your IT policy may block this; contact your administrator.
- Hibernation is still available in the Start menu after disabling. This is normal; the menu entry is independent of the feature. Use the Control Panel method in the Tips section to remove it from the menu.
- hiberfil.sys still exists after the command. First, make sure hidden files are visible. If it is still there, run
powercfg /h offagain and then restart your PC. Some systems need a reboot to delete the file. - You get an error about “The parameter is incorrect.” This usually means the command was mistyped. Copy the exact text
powercfg /h offand paste it into the admin prompt. - Fast Startup is grayed out in Control Panel. That is expected once hibernation is disabled. If you want Fast Startup back, re-enable hibernation with
powercfg /h on.
Frequently Asked Questions
Q: Does disabling hibernation delete my open programs?
A: No. It only stops Windows from saving the entire RAM contents to disk when you sleep. Your open programs remain in memory during normal sleep; they are lost only if the PC loses power entirely.
Q: How much disk space will I free up?
A: The hiberfil.sys file is typically 40–75% of your installed RAM. For example, a PC with 16 GB of RAM usually frees 6–12 GB.
Q: Can I still use Sleep mode after disabling hibernation?
A: Yes. Sleep mode is a separate feature and remains fully functional. Only the hibernate option and Fast Startup are affected.
Q: Will disabling hibernation damage my SSD or laptop battery?
A: No. It actually reduces writes to the SSD since the large hibernation file is no longer written on every sleep cycle. There is no negative impact on the battery.
Q: How do I turn hibernation back on?
A: Open Command Prompt or PowerShell as administrator and run powercfg /h on. The hiberfil.sys file will be recreated automatically.
Q: Does this work on Windows 10 and Windows 11 the same way?
A: Yes. The command is identical on both operating systems, and the steps for opening an admin terminal are the same.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Set a Google Play Budget & Stop Accidental Purchases
- Destiny 2 Error Code Anteater: Fixes & Causes
- View Android Photos on Chromebook: Step-by-Step
- Fix Windows Could Not Prepare the Computer to Boot
- Windows 11 Security Settings: Best Config Guide
- Install Custom Recovery on Samsung Galaxy Trend