System Enable or Disable Hibernate in Windows 11

  • Thread starter Thread starter Brink
  • Start date Published: Start date Updated Updated:
  • Tags Tags
    power

Hibernate_header.webp

This tutorial will show you how to enable or disable hibernate and restore or delete the hiberfil.sys file in Windows 11.

Hibernate is a power-saving state designed primarily for laptops, and might not be available for all PCs. (For example, PCs with Modern Standby may not have hibernate available.) While sleep puts your work and settings in memory and draws a small amount of power, hibernation puts your open documents and programs on your hard disk to the hiberfile (C:\hiberfil.sys), and then turns off your computer. Hibernate uses less power than sleep and when you start up the PC again, you’re back to where you left off (though not as fast as sleep). Use hibernation when you know that you won't use your laptop or tablet for an extended period and won't have an opportunity to charge the battery during that time.
  • By default, the size of the hidden protected OS "C:\hiberfil.sys" file is 40% of the total amount of RAM installed on your computer.
  • If you disable hibernate, fast startup will also get disabled.
  • If you disable hibernate, the hiberfil.sys file will be deleted to free up hard drive space.
  • If you disable hibernate, hibernate will no longer show in the Power menu.
Fast startup requires that hibernate be enabled. If you only want to use fast startup and don't plan on using hibernate, then you can specify the hiberfile type as reduced to significantly reduce the size of the hiberfile (C:\hiberfil.sys) to about half of its full size.

If you want to use hibernate, then be sure to specify the hiberfile type as full.

Reference:

You must be signed in as an administrator to enable or disable hibernate.


A Windows device that supports Modern Standby may not have hibernate available by default.

If your system supports Modern Standby and you do not have hibernate available and want hibernate, you will need to either disable Modern Standby Network Connectivity or disable Modern Standby first, then enable hibernate.




Contents

  • Option One: Enable or Disable Hibernate using Command
  • Option Two: Enable or Disable Hibernate using REG File




Option One

Enable or Disable Hibernate using Command


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below you want to use into Windows Terminal (Admin), and press Enter. (see screenshots below)

(Enable hibernate - default)​
powercfg -h on

OR​

(Disable hibernate)​
powercfg -h off

3 You can now close Windows Terminal (Admin) if you like.

enable_hibernate_command.png

disable_hibernate_command.png





Option Two

Enable or Disable Hibernate using REG File


1 Do step 2 (enable) or step 3 (disable) below for what you would like to do.

2 Enable Hibernate

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Enable_Hibernate.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"HibernateEnabled"=dword:00000001
"HibernateEnabledDefault"=dword:00000001

3 Disable Hibernate

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Disable_Hibernate.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"HibernateEnabled"=dword:00000000
"HibernateEnabledDefault"=dword:00000000

4 Save the .reg file to your desktop.

5 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

6 Double click/tap on the downloaded .reg file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 Restart the computer to apply.

9 You can now delete the downloaded .reg file if you like.

10 If you disabled hibernate, run the command below in an elevated command prompt to delete the hiberfil.sys file if wanted. (see screenshot below).

del /f /s /q /a "C:\hiberfil.sys"

Delete_hiberfil_command.webp


That's it,
Shawn Brink


 

Attachments

Last edited:
@meinprotaras,

It'll be interesting to hear results from others to see what they are getting.

I have both DWORDs in the REG files that keep them working now.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Using the'Disable' reg file updates the registry OK, but I can't get rid of hiberfil.sys - is not deletable in File Explorer -even after re-booting

#01.webp


#02.webp
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 (Build 26200.8737)Intel Core Ultra 9 285 5.6 GHz32.00 GBIntel Integrated Graphics (128 MB)
OS
Windows 11 Pro 25H2 (Build 26200.8737)
Computer type
PC/Desktop
Manufacturer/Model
Dell Pro Max Tower T2 FCT2250
CPU
Intel Core Ultra 9 285 5.6 GHz
Motherboard
64-bit operating system, x64-based processor
Memory
32.00 GB
Graphics Card(s)
Intel Integrated Graphics (128 MB)
Sound Card
Realtek Audio
Monitor(s) Displays
Dell P2714H Monitor
Screen Resolution
1920 x 1080
Hard Drives
1 x 512GB M.2 XG10d SED KIOXIA PCIe solid state drive (Internal)
1 x 2TB Seagate ST2000DM008-2UB102 HDD (Internal)
1 x 1TB Seagate STGX4000400 External HDD
1 x 4TB Seagate STGX4000400 External HDD
1 x 6TB WD Elements AE 2689 External HDD
PSU
500 Watts
Cooling
Air
Keyboard
Microsoft Wired Keyboard 600
Mouse
Microsoft USB Basic Optical Mouse v2.0
Browser
Firefox
Antivirus
Windows Defender + Malwarebytes Premium
Other Info
BaseBoard Manufacturer Dell Inc.
BaseBoard Product 022RY57
BaseBoard Version A01
Using the'Disable' reg file updates the registry OK, but I can't get rid of hiberfil.sys - is not deletable in File Explorer -even after re-booting

View attachment 161985

View attachment 161986

Hello mate, :alien:

You should be able to run the command below in an elevated command prompt after doing option 2 to delete the hiberfil.sys file.

del /f /s /q /a "C:\hiberfil.sys"
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
:shawn:
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 (Build 26200.8737)Intel Core Ultra 9 285 5.6 GHz32.00 GBIntel Integrated Graphics (128 MB)
OS
Windows 11 Pro 25H2 (Build 26200.8737)
Computer type
PC/Desktop
Manufacturer/Model
Dell Pro Max Tower T2 FCT2250
CPU
Intel Core Ultra 9 285 5.6 GHz
Motherboard
64-bit operating system, x64-based processor
Memory
32.00 GB
Graphics Card(s)
Intel Integrated Graphics (128 MB)
Sound Card
Realtek Audio
Monitor(s) Displays
Dell P2714H Monitor
Screen Resolution
1920 x 1080
Hard Drives
1 x 512GB M.2 XG10d SED KIOXIA PCIe solid state drive (Internal)
1 x 2TB Seagate ST2000DM008-2UB102 HDD (Internal)
1 x 1TB Seagate STGX4000400 External HDD
1 x 4TB Seagate STGX4000400 External HDD
1 x 6TB WD Elements AE 2689 External HDD
PSU
500 Watts
Cooling
Air
Keyboard
Microsoft Wired Keyboard 600
Mouse
Microsoft USB Basic Optical Mouse v2.0
Browser
Firefox
Antivirus
Windows Defender + Malwarebytes Premium
Other Info
BaseBoard Manufacturer Dell Inc.
BaseBoard Product 022RY57
BaseBoard Version A01

Latest Support Threads

Back
Top Bottom