Windows command guide

Disable Hibernation in Windows to Recover Disk Space

Hibernation saves memory contents to disk so the system can power off and resume later. That feature uses the hiberfil.sys file, which can consume several gigabytes depending on the system. On smaller SSDs or cramped Windows installations, reclaiming that space can make a real difference.

This guide is written around the specific symptom-command match for disable hibernation to free space, not as a generic dump of terminal lines. That makes the page more useful for real troubleshooting and reduces the chance of running the wrong repair step.

Reviewed guide Updated 2026-04-21
Elevated Command Prompt
powercfg -h off

Best place to run it

Elevated Command Prompt is the right execution context for this page. Because this repair touches protected Windows state, a normal unelevated shell can return misleading access errors or partial results.

Fast repair workflow

  1. Start from the exact symptom on this page: Your system drive is running low on free space
  2. Run the focused cleanup or performance line exactly as shown: powercfg -h off.
  3. This workflow is tuned for this repair, so avoid mixing it with unrelated repair commands too early.
  4. Test the exact activity that felt slow before, not just a general impression of speed.
  5. If nothing changes, move toward startup load, storage health, temperature, or driver investigation instead of random tweaks.

Copyable wrapper script

Use this wrapper when you want the page command inside a clearer script block with start and finish prompts.

@echo off echo Run this CMD sequence in an elevated Command Prompt. echo Starting targeted repair sequence... powercfg -h off echo. echo Review the output before closing this window. pause

Verification commands after the repair

These follow-up commands help you check whether the repair actually changed the Windows state that matters, instead of assuming success from a single line.

powercfg /list powercfg /energy

What problem this command is trying to solve

This command targets low disk space caused partly by the hibernation file. It is useful when storage is tight and you do not rely on hibernation-related resume behavior.

  • Your system drive is running low on free space.
  • A large hiberfil.sys file is taking up room you would rather use elsewhere.
  • You want a quick built-in way to reclaim several gigabytes.

How the command works

The powercfg command disables hibernation and removes the hibernation file used by Windows to store memory state for that feature. That immediately frees the disk space reserved for it.

When it makes sense to run it

Use it on systems where disk space matters more than hibernation. It is especially common on smaller SSDs, older laptops, or test machines where every few gigabytes count.

Before you run this command

  • Open an elevated Command Prompt or PowerShell window before running powercfg -h off.
  • Confirm that the symptom really matches this guide, especially if you are seeing signs such as: your system drive is running low on free space.
  • Set one measurable goal first, such as reclaiming storage, reducing UI lag, or refreshing a damaged cache.

What result to expect

After running powercfg -h off, compare the result against the symptom that brought you here. The most useful checkpoint is whether your system drive is running low on free space becomes less frequent, changes form, or produces a clearer error message. A command page is stronger when it helps you verify a real change instead of just assuming the line must have worked.

How to verify that it worked

The best verification step after powercfg -h off is to repeat the action that previously triggered the problem. If a large hiberfil.sys file is taking up room you would rather use elsewhere still appears in exactly the same way, the command probably was not the whole answer and you should move to the next targeted check instead of assuming the page is finished.

Why administrator rights matter here

This command changes responsiveness, storage cleanup, cache state, or power behavior. Run it in an elevated shell so Windows can apply the repair instead of only returning an access or privilege error.

Before you run it

Disabling hibernation also affects related resume behavior such as Fast Startup on many systems. If you depend on hibernate as part of your workflow, think before removing it.

When this is probably the wrong fix

This is not the right first fix for worn-out hardware or a machine that is overloaded by too many startup apps. Use it when the page is clearly targeting cache corruption, storage waste, or a specific Windows performance setting.

What to do if it does not help

If powercfg -h off does not improve your system drive is running low on free space, move to the next repair step that matches the same symptom family instead of piling on random commands. The best follow-up depends on whether the failure is mainly about responsiveness, storage cleanup, cache state, or power behavior.

Frequently asked questions

Should I use powercfg -h off for this exact Windows symptom?

Use it when the behavior on your PC lines up with the repair target on this page: This command targets low disk space caused partly by the hibernation file. It is useful when storage is tight and you do not rely on hibernation-related resume behavior.

What should I check right after powercfg -h off?

Check whether the original trigger still reproduces the same failure. For this page, a useful checkpoint is whether your system drive is running low on free space becomes less frequent, changes form, or points you toward a more specific next step.

When should I not rely on powercfg -h off alone?

This is not the right first fix for worn-out hardware or a machine that is overloaded by too many startup apps. Use it when the page is clearly targeting cache corruption, storage waste, or a specific Windows performance setting.