To disable hibernation on a Windows computer, the fastest method is to run the Command Prompt as an administrator and enter the command powercfg.exe /hibernate off. This action immediately removes the hibernation file (hiberfil.sys) from your system drive, reclaiming several gigabytes of disk space and removing the Hibernate option from your power menus. Disabling this feature is particularly useful for users with limited SSD storage or those who prefer the system to shut down completely or use standard Sleep mode to save power without the overhead of a hibernation file.
Hibernation differs from Sleep mode in how it handles your open applications and data. While Sleep keeps your work in RAM (which requires a small amount of power), Hibernation writes everything in the RAM to a hidden file on your hard drive and turns the power off completely. While this is great for laptops that might run out of battery, it can cause slower boot times and consume a significant amount of storage space—often equal to a large percentage of your installed RAM. By disabling this setting, you streamline your power options and free up storage.
What You'll Need
- A computer running a version of Windows (such as Windows 10 or 11).
- An account with Administrative privileges (required to change system-level power settings and run command-line tools).
- A keyboard and mouse.
Step-by-Step
Depending on your preference, you can disable hibernation via the Command Prompt for a total system removal, or via the Control Panel to simply hide the option from your start menu. Note that labels and menu paths may differ slightly based on your specific Windows version, device manufacturer, or regional settings.
Method 1: Total Disable via Command Prompt (Recommended)
- Click the Start button or press the Windows key on your keyboard.
- Type
cmdinto the search bar. - In the search results, right-click on Command Prompt and select Run as administrator. This is a critical step; the command will not work in a standard user window.
- A User Account Control (UAC) prompt will appear asking if you want to allow this app to make changes to your device. Click Yes.
- In the black command window, type the following command exactly:
powercfg.exe /hibernate off - Press the Enter key.
- There will be no confirmation message if the command was successful; the cursor will simply move to a new blank line.
- Close the Command Prompt window. The hibernation file is now deleted, and the option is removed from all power menus.
Method 2: Hiding Hibernate via Control Panel
If you want to keep the hibernation functionality (for example, to support Fast Startup) but simply want to remove the "Hibernate" button from the power menu to avoid clicking it by mistake, use this method.
- Open the Control Panel from the Start menu search.
- Select Hardware and Sound, then click on Power Options.
- On the left-hand sidebar, click the link that says Choose what the power buttons do.
- You will see a section at the bottom labeled Shutdown settings. These options are likely greyed out and unclickable.
- Click the link at the top of the window that says Change settings that are currently unavailable. You may be prompted for an administrator password.
- Under the Shutdown settings section, uncheck the box next to Hibernate.
- Click the Save changes button at the bottom of the window.
- The Hibernate option will now be hidden from your Start menu power options, but the system can still use hibernation for Fast Startup if that box remains checked.
Common Mistakes
One of the most frequent errors occurs when users open the Command Prompt without administrative rights. If you simply click "Open" instead of "Run as administrator," you will receive an error message stating "A request operation requires elevation" or "Access is denied." Always ensure the window title explicitly says "Administrator: Command Prompt" before typing the command.
Another common mistake is confusing Sleep and Hibernation. Some users disable hibernation thinking they are disabling Sleep mode. Sleep mode is managed through separate power plan settings and does not rely on the hiberfil.sys file. If your goal is to stop the computer from ever entering a low-power state, you must adjust the "Sleep" timer in the Power & Sleep settings menu rather than disabling hibernation.
Users also occasionally mistype the command. Ensure there is a space after powercfg.exe and that the word off is spelled correctly. Using a forward slash (/) is mandatory; using a dash or a backslash will result in an "invalid command" error.
Tips
If you are using a laptop and frequently move between different power sources, consider whether you actually need hibernation. Hibernation is a lifesaver if your battery is critically low and you cannot find a charger, as it saves your entire session to the disk. If you disable it, your only options are Sleep (which drains battery slowly) or Shut Down (which closes all apps). If you have a high-capacity battery and a fast SSD, disabling it is usually the better choice for performance and space.
For users with very small SSDs (such as 128GB or 256GB), disabling hibernation can reclaim 4GB to 16GB of space depending on how much RAM your system has. To check how much space you are saving, you can look for the hidden hiberfil.sys file in the root of your C: drive, though you will need to enable "Show hidden files, folders, and drives" and uncheck "Hide protected operating system files" in File Explorer options to see it.
If you want to re-enable the feature later, the process is identical to the disable process, but you use the command powercfg.exe /hibernate on. This will immediately recreate the hibernation file on your drive.
Troubleshooting
If you ran the command and the Hibernate option is still appearing in your power menu, first restart your computer. Sometimes the UI does not update the power menu list until a fresh boot has occurred. If the problem persists, check if you have any third-party power management software installed by your laptop manufacturer (such as Lenovo Vantage, Dell Power Manager, or HP Command Center), as these apps can sometimes override Windows default power settings.
If you receive an error saying powercfg is not recognized as an internal or external command, it is likely that your system's environment variables are corrupted. You can fix this by typing the full path to the executable: C:\Windows\System32\powercfg.exe /hibernate off.
In rare cases, the hibernation file may be locked by another process. If the command fails, try booting your computer into Safe Mode. In Safe Mode, most non-essential drivers and background services are disabled, which usually allows the powercfg command to execute without interference. Once the command is successful in Safe Mode, restart the computer normally.
Frequently Asked Questions
Will disabling hibernation delete my files?
No. Disabling hibernation only deletes the hiberfil.sys file, which is a temporary storage area for the system's RAM. It does not affect your documents, photos, or installed applications.
Does disabling hibernation affect Fast Startup?
Yes. In Windows, Fast Startup is a hybrid feature that uses a partial hibernation file to boot the computer faster. If you use the /hibernate off command, Fast Startup is also disabled, and your computer will perform a full "cold boot" every time you turn it on.
Why is the Hibernate option greyed out in the Control Panel?
The options are greyed out by default to prevent accidental changes to system power states. You must click the "Change settings that are currently unavailable" link at the top of the page to unlock those checkboxes.
Is it safe to disable hibernation on a desktop PC?
Yes, it is generally safer and more common to disable it on desktops than on laptops. Since desktops have a constant power supply, the risk of losing data due to a dead battery is non-existent, making hibernation largely unnecessary.
Can I disable hibernation on a Mac?
No, these instructions are specifically for Windows. macOS handles power management and "hibernatemode" differently, typically through the Terminal using the pmset command, but the logic and file structures are entirely different from Windows.
Will this make my computer run faster?
It will not increase your CPU speed or gaming performance, but it can make your boot process feel cleaner by avoiding the hybrid boot state. The primary benefit is the reclaimed disk space on your primary drive.