To turn off hibernation in Windows 11, open Command Prompt or PowerShell as Administrator and run powercfg /hibernate off (or powercfg -h off — both forms work). The command deletes the hiberfil.sys file, frees the disk space it occupied, and removes Hibernate and Fast Startup from the system's power options.
That single line is the whole answer for most people. The rest of this article covers what the command actually does under the hood, when it is a sensible thing to run and when it is not, how to reverse it, and why the options you see in Settings sometimes do not match what the command reports.
What Hibernation Actually Does in Windows 11
Hibernation writes the contents of RAM to a file on the system drive called hiberfil.sys and then powers the machine down completely. On resume, Windows reads that file back into memory, so your open apps and documents return exactly as you left them — but with zero power draw while the machine was off. Sleep, by contrast, keeps RAM powered and resumes almost instantly, but a laptop in sleep will drain its battery over hours or days.
That memory image is compressed. This is why hiberfil.sys is typically a large fraction of your installed RAM, not the full amount. A machine with 16 GB of RAM commonly has a hiberfil.sys of several gigabytes, sometimes over 6 GB. On a small SSD or a tablet with 64 GB of storage, that is a meaningful chunk of space.
Hibernation also underpins a second feature most people do not connect to it: Fast Startup. When Fast Startup is enabled, shutting down does not really shut down — Windows closes your user session, then hibernates the kernel session to disk. Booting back up restores that kernel image instead of initialising everything from scratch, which is why a “cold” boot on a modern Windows 11 machine can feel like a resume. Turning hibernation off removes Fast Startup too, because Fast Startup has no file to write to without hibernation.
Running the Command
The command must be run with administrator rights; without elevation, powercfg will report an access error. You can use either Command Prompt or Windows Terminal (PowerShell), and both accept the slash or hyphen form of the switch.
- Right-click the Start button and choose Terminal (Admin) or Windows PowerShell (Admin); confirm the elevation prompt.
- Type
powercfg /hibernate offand press Enter. - Wait a moment. The command returns silently on success — no confirmation message is normal.
- Verify the result by running
powercfg /a, which lists the sleep states available on the machine. Hibernate should now appear as “not available”.
To check the hibernation file's current size before and after, use powercfg /hibernate /size to view settings, or simply look at the drive's free space in File Explorer. To turn hibernation back on, run powercfg /hibernate on; Windows recreates hiberfil.sys on the next appropriate shutdown.
Reasons to Turn It Off
Disabling hibernation is not a fix for a broken system by itself, but it is a legitimate choice in several situations:
- Reclaiming disk space on a small SSD, an eMMC tablet, or a drive that is nearly full. Several gigabytes back is often the difference between a comfortable and a cramped system drive.
- Desktop PCs that are always plugged in and rarely need to preserve a session across a full power loss.
- Dual-boot setups, where a hibernated Windows image can conflict with another operating system accessing the same disk. Leaving Windows hibernated and then mounting its partition from Linux is a known source of filesystem corruption, so many dual-boot users disable hibernation deliberately.
- Troubleshooting Fast Startup oddities — stuck shutdowns, drivers that behave differently after a “shutdown” than after a restart, or USB and network devices that fail to reinitialise.
- Machines with unreliable resume, where waking from hibernation produces a black screen or a crash. Turning the feature off stops the problem from occurring; the underlying cause is usually a driver or firmware issue worth investigating separately.
What You Give Up
Disabling hibernation changes behaviour in ways that are easy to forget:
- Laptops lose the ability to preserve a session across a battery that runs flat. Sleep still works, but a laptop left asleep in a bag for a week will simply power off and lose unsaved work.
- Fast Startup disappears from Control Panel's power settings, and boot times on older hardware may lengthen noticeably.
- Some systems use hybrid sleep, which combines sleep and hibernation; that option also becomes unavailable.
- Certain managed environments or BitLocker configurations rely on hibernation for specific recovery scenarios, so check with whoever administers the machine before changing it on a work device.
A middle path exists: instead of disabling hibernation entirely, you can shrink the hibernation file with powercfg /hibernate /size 40, where the number is a percentage of RAM (Windows generally accepts values from 40 upward). This keeps the feature but reduces the disk footprint. The reduced-size file supports hibernation, though some configurations that need a full image — particularly certain Fast Startup and crash-dump scenarios — may not work as expected with a heavily reduced file.
Common Problems and Misconceptions
The most frequent confusion is that the command appears to do nothing. It genuinely produces no success output; verifying with powercfg /a is the reliable check. If you see “You do not have permission to enable or disable the Hibernate feature”, you are not elevated — close the window and reopen it as administrator.
Another common surprise: the Hibernate checkbox in Settings may be missing even though hibernation is enabled. Windows 11 hides sleep-related options in the old Control Panel power menu by default on many systems. The command-line switch works regardless of whether the checkbox is visible, so do not assume the feature is already off just because you cannot find the toggle.
A third misconception is that powercfg /hibernate off deletes hiberfil.sys permanently. It removes the file at the time you run it, but the file is recreated whenever hibernation is switched back on, and it is also recreated by some Windows updates or by enabling certain features. If disk space creeps back, re-check the setting.
Finally, people sometimes run the command hoping to fix slow shutdowns or high disk usage from a “System” process. Disabling hibernation can genuinely help if the culprit is hiberfil.sys activity, but if the problem is elsewhere — for example an update loop or a misbehaving driver — the command will change nothing, and you should look at Startup apps, storage health, and update history instead.
Related Powercfg Commands Worth Knowing
The hibernate switch is one of several useful powercfg operations, and they are often confused with one another:
powercfg /a— lists which sleep states the hardware and firmware support and which are currently unavailable, with a reason for each.powercfg /hibernate onandoff— enable or disable hibernation and the hiberfil.sys file.powercfg /hibernate /size N— set the hibernation file to N percent of installed RAM.powercfg /lastwake— report what device or event woke the machine from sleep, useful when a laptop wakes in a bag.powercfg /energy— run a short power efficiency diagnostic and produce an HTML report; it needs to run elevated and takes about a minute.powercfg /requests— show which processes are currently preventing the system from sleeping.
These are all local configuration commands with no network component, so they are safe to run on a personal machine, though anything that changes system power behaviour is worth reversing if it causes trouble.
Frequently Asked Questions
Does turning off hibernation delete hiberfil.sys immediately?
Yes. Running the off switch removes the file as part of disabling the feature, and the freed space shows up in File Explorer right away. Re-enabling it recreates the file at its default size on the next shutdown.
Is it safe to disable hibernation permanently?
For most desktop users and many laptop users, yes. The system continues to sleep and shut down normally; you only lose session preservation across a full power-down and the Fast Startup shortcut. On a managed work laptop, check policy first.
Why does my Start menu still show Hibernate after running the command?
Most likely the command was not run elevated, or the machine has a group policy or a restore state re-enabling the feature. Confirm with powercfg /a and check whether a policy is managing power settings.
Can I use this command to fix Fast Startup problems?
Yes — because Fast Startup depends on hibernation, disabling hibernation removes Fast Startup and forces every shutdown to be a true full shutdown. That is a legitimate troubleshooting step for odd post-shutdown behaviour.
What is the difference between sleep and hibernate?
Sleep keeps memory powered and resumes instantly but draws battery. Hibernate writes memory to disk and powers off completely, drawing nothing but taking longer to resume. Turning hibernation off leaves sleep intact.
Does the command need a reboot to take effect?
No. The change applies immediately: the file is removed and the feature is disabled as soon as the command completes. A restart is not required, though it does no harm.