Windows 7 hibernation is controlled most reliably with an elevated Command Prompt. Open Command Prompt with Run as administrator, then use Powercfg to turn hibernation off or on. Disabling it removes the hidden Hiberfil.sys file and makes hybrid sleep unavailable, so check those trade-offs before proceeding.
Use Powercfg to switch hibernation off or on
Powercfg.exe is included with Windows 7 and can control hibernation and sleep features. You need administrator privileges because the command changes a system power feature and the reserved system file on the operating-system drive.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
AIMS 600W 12V Pure Sine Inverter Charger w/Transfer Switch 120V ETL | $607.00 | Buy on Amazon |
As an Amazon Associate I earn from qualifying purchases.
Disable hibernation
- Click Start.
- Type
cmdin the search box. - In the results, right-click Command Prompt and choose Run as administrator.
- Approve the User Account Control prompt.
- At the elevated prompt, enter:
powercfg.exe /hibernate off
Press Enter. This turns hibernation off and removes Windows’ reserved hibernation file, recovering the disk space it occupied.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Enable hibernation again
- Open an elevated Command Prompt using the same Start-menu and Run as administrator steps.
- Enter:
powercfg.exe /hibernate on
Press Enter. Hibernation is available again, and Windows recreates the file it needs for hibernation. The shorter forms powercfg -h off and powercfg -h on are equivalent Powercfg syntax; the longer /hibernate form is easier to recognize when following a procedure.
#1 Best Overall
- 3-in-1 Power Conversion System: Combines a pure sine inverter 5A, 600 Watt, 20A smart battery charger, and automatic transfer switch into a single integrated unit for simplified system design.
- High Surge Capability for Demanding Loads: Delivers 1800W surge (3x of continuous output) for up to 20 seconds, supporting motor driven tools and equipment during startup.
- Wide Battery Compatibility Charging: Four stage smart charger supports GEL, Lead Acid, AGM, and Lithium batteries with selectable charging profiles and adjustable current.
- Advanced Power Management Modes: Selectable AC priority or battery priority operation allows the system to automatically manage power between utility and battery power.
- 30 Years of Power Engineering: Put serious technical experience into your setup. Count on an established brand that stands firmly behind its products.
What disabling hibernation changes
The Hiberfil.sys file is removed
Windows keeps a hidden system file named Hiberfil.sys in the root of the operating-system drive. Microsoft describes its size as approximately equal to the amount of installed RAM. When hibernation is enabled, Windows uses this file to store the contents of memory so the previous session can be restored after power is removed. The same file is also used when hybrid sleep is enabled.
Because the file can be roughly as large as the computer’s RAM, disabling hibernation may recover a substantial amount of space on a small system drive. The file is managed by Windows; use Powercfg rather than trying to delete it manually.
Hybrid sleep stops working
Hybrid sleep combines characteristics of Sleep and Hibernate by keeping the computer in a low-power state while also saving memory to disk. Microsoft states that hybrid sleep does not work when hibernation is unavailable. If your power plan depends on hybrid sleep, turning hibernation off changes that behavior even though ordinary Sleep can remain available.
Free tools Windows power users keep installed
One-click scans. No signup required.
There is a power-loss risk with hybrid sleep enabled
Microsoft warns: “You may lose data if you make hibernation unavailable and a power loss occurs while the hybrid sleep setting is turned on.” Treat this as a data-safety issue, not merely a menu preference. Save open documents before changing the setting, and do not disable hibernation on a machine where hybrid sleep is part of your protection against an exhausted battery or interrupted mains power.
Show the Hibernate command in Windows 7’s menus
The Control Panel route changes which shutdown buttons are displayed. It is useful after hibernation has been enabled with Powercfg, but the checkbox alone is not a replacement for the elevated command when hibernation itself has been disabled.
- Open Control Panel.
- Choose Power Options.
- Select Choose what the power buttons do.
- Click Change settings that are currently unavailable.
- Under Shutdown settings, select the Hibernate check box.
- Choose Save changes.
After saving, the Hibernate option can appear in the Windows 7 shutdown menu when the active power configuration permits it. If the check box is missing or cannot be selected, return to the elevated Command Prompt procedure and run the enable command first.
Hibernate versus Sleep
Both features preserve your working session, but they are designed for different periods of inactivity. Microsoft describes Hibernate as using less power than Sleep and restoring the previous session more slowly. It recommends Hibernate when the computer will be unused for an extended period and there will be no opportunity to charge the battery.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors| Characteristic | Sleep | Hibernate |
|---|---|---|
| Power use while inactive | Uses more power than Hibernate. | Uses less power than Sleep. |
| Resume speed | Normally resumes faster. | Resumes more slowly because the saved session is read from disk. |
| Protection during a long unplugged period | Continues depending on the computer’s low-power state and battery. | Saves the previous session to disk and is intended for longer periods without charging. |
| Disk-space requirement | Does not depend on the hibernation file for ordinary Sleep. | Requires Hiberfil.sys, approximately the size of installed RAM. |
| Hybrid sleep | Can participate in hybrid sleep when hibernation is available. | Provides the disk-save component that hybrid sleep requires. |
Choose Sleep when you need a quick return and expect power to remain available. Choose Hibernate when conserving battery matters more than resume speed. If you disable hibernation to reclaim disk space, accept that hybrid sleep will no longer be available.
Why the Hibernate option disappeared
Hibernation was disabled
When the off command has been run, Windows removes the hibernation file and no longer offers hibernation-dependent controls in the normal way. Run the elevated enable command, then revisit Control Panel > Power Options > Choose what the power buttons do. Select Change settings that are currently unavailable, tick Hibernate under Shutdown settings, and save the changes.
The option is hidden in Shutdown settings
Hibernation can be enabled but omitted from the visible shutdown menu. The Control Panel procedure exposes the protected settings and lets you select the Hibernate check box. This changes menu visibility; it does not replace the Powercfg step if the feature has been turned off at the system level.
You are not using an elevated prompt
Powercfg changes that affect hibernation require the administrator context used in Microsoft’s procedure. If Windows rejects the command or makes no change, close the window, start cmd from the Start menu, right-click Command Prompt, choose Run as administrator, approve User Account Control, and run the appropriate command again.
Recommended Free Tools
Practical checks before and after the change
Before disabling
- Save documents and close applications that contain unsaved work.
- Decide whether you rely on hybrid sleep for protection during a power interruption.
- Consider whether the disk space occupied by
Hiberfil.sysis worth giving up Hibernate and hybrid sleep. - Note the current shutdown-menu choices so you can restore them later.
After disabling
- Open the shutdown controls and confirm that Hibernate is no longer offered as an active mode.
- Check that your expected Sleep behavior still suits the computer’s battery and power situation.
- Do not treat ordinary Sleep as a substitute for the power-loss protection provided by a hibernation-backed configuration.
After enabling again
- Use the Control Panel path to make the Hibernate check box visible and select it if you want the menu item displayed.
- Confirm that the hibernation file has been recreated on the operating-system drive before depending on Hibernate or hybrid sleep.
- Test the shutdown menu at a convenient time, rather than waiting until the battery is nearly empty.
Common decisions and safe recovery
You need disk space temporarily
Disabling hibernation can release the space reserved for the hidden file, but it also removes the ability to hibernate and disables hybrid sleep. If you later need those features, run the enable command again and restore the menu selection in Power Options.
You rarely use the computer for long periods
Hibernate is the lower-power choice for an extended idle period when charging will not be available. Its slower resume is the principal trade-off. Disabling it is most appropriate when the saved disk space matters more than that long-idle power behavior.
You want fast resume and maximum power protection
Leave hibernation available. Use Sleep for short breaks and Hibernate for longer absences. This preserves the choice between speed and lower power use and keeps hybrid sleep available where the power plan supports it.
Command summary
| Goal | Required action | Result |
|---|---|---|
| Turn hibernation off | Run powercfg.exe /hibernate off in an elevated Command Prompt. |
Hibernation is disabled and the reserved hibernation file is removed. |
| Turn hibernation on | Run powercfg.exe /hibernate on in an elevated Command Prompt. |
Hibernation is restored and its required file is recreated. |
| Display Hibernate in the menu | Power Options > Choose what the power buttons do > Change settings that are currently unavailable > select Hibernate > Save changes. | The Hibernate shutdown choice is shown when the feature is enabled. |
The Bottom Line
For Windows 7, use an administrator Command Prompt and powercfg.exe /hibernate off or powercfg.exe /hibernate on. Turning it off can recover a Hiberfil.sys file approximately the size of installed RAM, but it removes Hibernate and prevents hybrid sleep from working.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

