Disable Hibernation in Windows 11 Using CMD: Step-by-Step
In this article
To disable hibernation in Windows 11 using Command Prompt, open an elevated Command Prompt and run powercfg /hibernate off. This removes the hiberfil.sys file, frees the disk space it occupied, and removes the Hibernate option from the power menu. You need administrator rights because the command changes a system-wide power setting. Disabling hibernation also turns off Fast Startup, a feature that relies on the hibernation file, so your PC will perform a full shutdown instead of a hybrid one.
What You'll Need
- A Windows 11 PC you can sign in to with an administrator account.
- Command Prompt opened as administrator (the standard Command Prompt will return an access-denied error).
- Enough free disk space to work comfortably; disabling hibernation frees space rather than requiring it, but a nearly full drive can make Windows updates and other maintenance harder.
- A note of any settings you rely on, such as Fast Startup, because turning hibernation off also turns Fast Startup off.
Step-by-Step
- Open Command Prompt as administrator. Press the Windows key, type
cmd, right-click Command Prompt in the results, and choose Run as administrator. Confirm the User Account Control prompt. The window title should read Administrator: Command Prompt. If it does not, close it and repeat. - Check the current hibernation state. Type
powercfg /aand press Enter. This lists the sleep states available on your system. If hibernation is enabled, you will see Hibernate in the list of available states. This step is optional but confirms what you are about to change and shows whether Fast Startup is active. - Disable hibernation. Type
powercfg /hibernate offand press Enter. The command returns no success message; a blank line and a new prompt mean it worked. If you see an error instead, see the Troubleshooting section below. - Confirm the change. Run
powercfg /aagain. Hibernate should no longer appear as an available state. You can also check that the hidden system fileC:\hiberfil.sysis gone; it is normally hidden, so enable Hidden items in File Explorer's View menu to see it. - Check the power menu. Open the Start menu, click the power button, and confirm that Hibernate is no longer listed. On some systems it was never shown there, which is normal; the command still disables the underlying feature.
- Decide about Fast Startup. With hibernation off, Fast Startup is also off. If you want the faster boot behaviour back without full hibernation, you can re-enable hibernation and then turn Fast Startup off separately in Control Panel under Power Options > Choose what the power buttons do. There is no supported way to keep Fast Startup while hibernation is fully disabled, because Fast Startup writes a hibernation file.
- Restart if prompted. Most systems apply the change immediately, but a restart ensures the power menu and sleep behaviour are fully refreshed. Save your work before restarting.
Common Mistakes
- Using a non-elevated Command Prompt. The command will fail with an access-denied message. Always use Run as administrator.
- Typing the command with a space in the wrong place. The correct form is
powercfg /hibernate off. Variants likepowercfg /h offalso work, butpowercfg hibernate offwithout the slash does not. - Expecting a confirmation message. The command is silent on success. Check with
powercfg /arather than assuming it failed because nothing appeared. - Confusing sleep with hibernation. Disabling hibernation does not disable Sleep. If you want to stop the PC sleeping, that is a separate setting in Settings > System > Power & battery.
- Forgetting that Fast Startup disappears too. Some people disable hibernation to free disk space and are surprised that boot times change. That is expected behaviour, not a fault.
- Running the command on a PC where hibernation is managed by policy. On some managed or company devices, power settings are locked by group policy and the command may be overridden. Check with your administrator before changing power settings on a work machine.
Tips
- Run
powercfg /hibernate size 0only if you want to keep hibernation enabled but reduce the hibernation file; if your goal is to remove hibernation entirely, useoffinstead. - If you later want hibernation back, run
powercfg /hibernate onin an elevated Command Prompt. The hibernation file is recreated automatically. - Disabling hibernation is a common fix for a hiberfil.sys file that has grown large on a small SSD. After disabling, the freed space appears immediately in File Explorer.
- Keep a note of the original state (from
powercfg /a) so you can restore it if you change your mind. - On laptops, hibernation is often the safety net that preserves your session when the battery runs critically low. If you disable it, make sure you save work before the battery drains, because the PC will shut down instead of hibernating.
Troubleshooting
“You do not have permission to perform this action.” The Command Prompt is not elevated. Close it, reopen with Run as administrator, and try again.
“The hibernation file type is not supported.” This can appear on some systems with certain storage configurations or when hibernation is already disabled. Run powercfg /a to see the current state before assuming something is broken.
The command runs but Hibernate still appears in the power menu. Sign out and back in, or restart. If it persists, check whether a group policy or a third-party power management tool is re-enabling it.
Fast Startup is greyed out in Control Panel. That is expected when hibernation is off. Re-enable hibernation with powercfg /hibernate on if you need to change Fast Startup settings.
The hiberfil.sys file is still present. It may be locked by the system until a restart. Restart the PC and check again. If it remains, confirm the command completed without error and that you are using an administrator prompt.
Battery drains faster or the laptop shuts down unexpectedly. With hibernation off, a critically low battery leads to shutdown rather than hibernation. Save work regularly, or re-enable hibernation if you rely on that behaviour.
Frequently Asked Questions
Does disabling hibernation delete my files?
No. It only removes the hibernation file and turns off the hibernation feature. Your documents and programs are unaffected.
Can I disable hibernation without administrator rights?
No. The command changes a system-wide power setting, so it requires an elevated Command Prompt.
Will this stop my PC from sleeping?
No. Sleep and hibernation are separate. Disabling hibernation does not change your sleep settings.
How do I turn hibernation back on?
Open an elevated Command Prompt and run powercfg /hibernate on. The hibernation file is recreated automatically.
Why did Fast Startup disappear after I ran the command?
Fast Startup uses the hibernation file, so it is turned off automatically when hibernation is disabled. Re-enable hibernation if you want to use Fast Startup again.
Does this work the same on Windows 10?
Yes. The powercfg /hibernate command works the same way in Windows 10 and Windows 11.