Forum Discussion

wenofia's avatar
wenofia
Copper Contributor
Feb 20, 2025

Hibernation File in Windows 11

Greetings and thank you for reaching out to us through the Microsoft Community.

 

Upon reviewing your report and accompanying visuals, it appears that even after turning off sleep and hibernation, a substantial 51.1GB of storage space remains occupied by hibernation files.

 

I acknowledge your raised concerns and skepticism regarding the persisting large hibernation file post disengaging sleep and hibernation functions.

 

Let's delve into the hibernation file matter. When your system enters hibernation, Windows utilizes the hiberfil.sys file to retain the system state. Disabling hibernation through power settings does not necessarily eliminate this file; hence, it continues to consume storage space.

 

Follow these steps to make adjustments to hiberfil.sys using the command prompt.

 

  1. Locate "Command Prompt" on the taskbar, right-click, and opt for "Run as administrator."
  2. 2. Enter the subsequent commands as per your choice:

To entirely disable hibernation and remove hiberfil.sys, execute:

   powercfg.exe /hibernate off

 

If you prefer to regulate the hibernation file size without deactivating hibernation, enter:

   powercfg.exe /hibernate /size 50

 

Avoid setting it excessively low to prevent potential errors during hibernation; it's advisable to maintain the size above 40% of your RAM.

 

Furthermore, consider altering the virtual memory through the following steps to influence the hibernation file size:

 

  1. Right-click the Start button and go to Settings > System > Advanced System Settings
  2. 2. Navigate to the Advanced tab, click "Settings" under the Performance section
  3. 3. In the ensuing window, access the Advanced tab, locate the Virtual Memory section, and click "Change"
  4. 4. Opt for either automatic management of the paging file size for all drives or manual adjustment
  5. 5. Confirm the changes by clicking OK

Assess if modifying the virtual memory setting aids in decreasing the hibernation file size.

 

Test out these recommendations and share your findings with us.

 

We appreciate your cooperation and assistance.

1 Reply

  • Nguyenais's avatar
    Nguyenais
    Bronze Contributor

    To check if hibernation is enabled or disabled: Open Command Prompt as an administrator. Run the following command:

    powercfg /a

    This will display the available sleep states on your system, including whether hibernation is enabled.

Resources