• Re: PSA: Somehow, without action from me, hyberfile.sys got turned on

    From Paul@3:633/10 to All on Tue Mar 31 16:25:03 2026
    On Tue, 3/31/2026 3:35 PM, Maria Sophia wrote:
    This is just a PSA where my circa 2009 desktop works just fine on Windows
    10 but today, it was out of memory even though I had about 5GB left.

    Huh?
    Where did 5GB of data suddenly go?
    C:\> wmic logicaldisk get name,freespace,size
    C:\> vssadmin list shadowstorage

    I checked all the usual suspects (which is a long list I maintain) such as:
    C:\> dism /online /cleanup-image /analyzecomponentstore
    Win+R > cleanmgr > Clean Up System Files > OK
    C:\> del /s /q C:\Windows\Prefetch\*
    C:\> del %LOCALAPPDATA%\CrashDumps\*
    etc.

    But it wasn't any of the usual suspects!
    It was hyberfile.sys!

    WTF?

    Sleep is off. Fast startup is off. Everything related to power is off.
    Point being that I haven't turned on hibernation in more than a decade.
    Q: How the heck did hibernation get turned on without me doing it?
    A: I don't know the answer.

    But the solution was simple once I saw that hiberfile.sys was the culprit:
    powercfg /h off

    Note: Obviously I had turned that off years ago, so "something" in the
    recent days turned hiberfile.sys back on. But what? I do not know.


    I had a hiberfil.sys change itself to a larger size.
    I did not think that was possible either.

    You could ask a similar question "why does my screen blanker
    keep setting itself to 10 minutes?". We know how that is
    happening (Windows Update), but we don't know why this is
    so so important to Microsoft, to make a fetish out of it.

    I've told the story before, about running a diagnostic
    from the Microsoft Diagnostics that has nothing whatsoever
    to do with screens or video. At the end of this particular
    sequence, a message appears "we noticed your screen blanker
    was set to a value other than 10 minutes, we have corrected
    this for you". Well, Thank You, Daddy :-/ Such paternalism.
    That's why I am calling that one a fetish.

    Paul


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Hank Rogers@3:633/10 to All on Tue Mar 31 19:11:13 2026
    Maria Sophia wrote on 3/31/2026 2:35 PM:
    This is just a PSA where my circa 2009 desktop works just fine on Windows
    10 but today, it was out of memory even though I had about 5GB left.

    Huh?
    Where did 5GB of data suddenly go?
    C:\> wmic logicaldisk get name,freespace,size
    C:\> vssadmin list shadowstorage

    I checked all the usual suspects (which is a long list I maintain) such as:
    C:\> dism /online /cleanup-image /analyzecomponentstore
    Win+R > cleanmgr > Clean Up System Files > OK
    C:\> del /s /q C:\Windows\Prefetch\*
    C:\> del %LOCALAPPDATA%\CrashDumps\*
    etc.

    But it wasn't any of the usual suspects!
    It was hyberfile.sys!

    WTF?

    Sleep is off. Fast startup is off. Everything related to power is off.
    Point being that I haven't turned on hibernation in more than a decade.
    Q: How the heck did hibernation get turned on without me doing it?
    A: I don't know the answer.

    But the solution was simple once I saw that hiberfile.sys was the culprit:
    C:> powercfg /h off

    Note: Obviously I had turned that off years ago, so "something" in the
    recent days turned hiberfile.sys back on. But what? I do not know.


    Mary, Microsoft ROBBED you!



    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From ...w¡ñ?±?ñ@3:633/10 to All on Tue Mar 31 23:43:30 2026
    On 3/31/2026 12:35 PM, Maria Sophia wrote:
    This is just a PSA where my circa 2009 desktop works just fine on Windows
    10 but today, it was out of memory even though I had about 5GB left.

    Huh?


    Having figured out it was the hibernation file, you've also(at least
    should have) figured(out) that it wasn't 'out of memory'.

    Fyi...nothing in Windows on an existing installation(monthly updates,
    app updates, software updates, disk cleanup(Windows or 3rd party),
    imaging, etc. re-enables the hibernation file on disk, the exception is
    the user changing or tampering with the o/s.


    --
    ...w­¤?ñ?¤

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From ...w¡ñ?±?ñ@3:633/10 to All on Wed Apr 1 10:51:02 2026
    On 4/1/2026 1:24 AM, Maria Sophia wrote:
    My theory?

    A Windows servicing stack power-policy reset triggered during a Defender update cycle.

    Can I prove that?
    Nope.

    But since it happened, there must be a mechanism for it to happen.
    It's all I can think of that might do it without the users' knowledge.


    For Win10 22H2, Windows Defender updates use the servicing stack but
    that use is only by checking the presence of a Servicing Stack.
    For Windows 10 any Serving Stack successfully installed after Sept 2025
    is sufficient for Windows Defender to update its engine and defs. Even
    if ESU has been enabled , the Sept. 25 as a mininum is still sufficient.
    If ESU has been enabled, the most recent monthly cumulative update
    provided by ESU would have installed the latest servicing stack.

    Windows Defender's installation of its engine or defs does not instruct Windows Update to update the Servicing Stack or cause a power policy reset.

    i.e. The hypothesis that a serving stack power policy reset was
    triggered during a Defender update is false.

    Something else, user controlled - managed or changed or tampered has
    occurred.


    I'll let you know if hiberfile.sys ever comes back alive again.


    --
    ...w­¤?ñ?¤

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Zaidy036@3:633/10 to All on Wed Apr 1 18:27:44 2026
    On 4/1/2026 4:24 AM, Maria Sophia wrote:
    Maria Sophia wrote:
    Apparently, it "can" happen.
    Apparently it "did" happen.

    How the heck did this happen that hibernation was turned on but not by me?

    Based on Winston's kind and helpful comment that it can't happen, I'm faithfully digging into if/how an unsupported Win10 box can change the
    power configuration without the user's consent, as it surprised me too.

    Especially as I'm testing what happens on an unsupported Win10 box.
    (I never signed up for the MSA so I can't get the free ESU updates.)

    Certainly I received Windows Defender updates as shown below:
    Security Intelligence Update for Microsoft Defender Antivirus
    KB2267602 (Version 1.447.105.0) - Current Channel (Broad)
    Successfully installed on 3/31/2026

    Security Intelligence Update for Microsoft Defender Antivirus
    KB2267602 (Version 1.447.96.0) - Current Channel (Broad)
    Successfully installed on 3/30/2026

    Apparently Windows defender updates use the Windows servicing stack.
    Which is apparently the same infrastructure used for Windows Update.

    Apparently the servicing stack periodically validates system configuration. Apparently if a power policy has issues, Windows restores defaults.

    Where the default for Windows 10 is:
    a. Hibernation ON
    b. HibernateEnabled = 1
    c. hiberfil.sys created
    As shown by:
    C:\> reg query HKLM\SYSTEM\CurrentControlSet\Control\Power /v HibernateEnabled

    My theory?

    A Windows servicing stack power-policy reset triggered during a Defender update cycle.

    Can I prove that?
    Nope.

    But since it happened, there must be a mechanism for it to happen.
    It's all I can think of that might do it without the users' knowledge.

    There is a way to stop this, but it's nuclear.
    C:\> powercfg /h off
    C:\> cd C:\
    C:\> echo. > hiberfil.sys
    C:\> attrib +r +s +h hiberfil.sys
    C:\> reg add HKLM\SYSTEM\CurrentControlSet\Control\Power /v HibernateEnabled /t REG_DWORD /d 0 /f

    That supposedly will permanently disable hibernation by turning it off, and then blocking Windows from recreating the hibernation file, and then forcing the system to keep hibernation disabled at the registry level.

    I just did those commands.
    I'll let you know if hiberfile.sys ever comes back alive again.

    I run a daily batch and if you do just add this line:
    IF EXIST C:\hiberfil.sys POWERCFG /H OFF


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From ...w¡ñ?±?ñ@3:633/10 to All on Wed Apr 1 23:13:34 2026
    On 4/1/2026 12:36 PM, Maria Sophia wrote:
    ...He wrote:
    For Win10 22H2, Windows Defender updates use the servicing stack but
    that use is only by checking the presence of a Servicing Stack.
    For Windows 10 any Serving Stack successfully installed after Sept 2025
    is sufficient for Windows Defender to update its engine and defs. Even
    if ESU has been enabled , the Sept. 25 as a mininum is still sufficient.
    If ESU has been enabled, the most recent monthly cumulative update
    provided by ESU would have installed the latest servicing stack.

    Windows Defender's installation of its engine or defs does not instruct
    Windows Update to update the Servicing Stack or cause a power policy reset. >>
    i.e. The hypothesis that a serving stack power policy reset was
    triggered during a Defender update is false.

    Something else, user controlled - managed or changed or tampered has
    occurred.

    Hi Winston,

    Thanks for debugging that hypothesis for where the ghost is in Windows.
    The ghost exists. But I don't know where or how it enabled hibernation.

    Yet.

    I don't debug your statements especially under the hood Windows
    possibilities without having first checking with contacts and old
    friends in Bellevue.

    I presented your earlier theory to a private mailing list of admins and 'Softies'

    A few responses
    -"Thanks for today's humor"
    -"Fixed in 2016, not possible since 8.1"
    -"Wow, pebkac"
    -

    More for the following
    1. Maintenance Phase Resets
    -"Fixed in 20H2"
    2. Modern Standby/S0 Transitions
    -"Most likely user caused"
    3. Corruption Recovery
    -"User has bigger problems than Hibernation"

    Maintenance Phase Resets:
    When the Update Orchestrator runs its "System Health" or "Remediation"
    tasks (at times which are bundled with monthly reliability rollups), it validates key system files. On older ACPI-compliant hardware, if the OS detects a power configuration it deems "incomplete" (such as missing the
    Fast Startup requirements), it possibly might "repair" the state by
    reverting HibernateEnabled to 1. I think.

    Modern Standby/S0 Transitions:
    Even on older systems, certain Windows 10 updates may attempt to bridge legacy BIOS power states with Modern Standby logic. If a driver update
    (like an Intel Management Engine or ACPI driver) occurs via Windows Update, the installer script may possibly resets the power provider to defaults.

    Corruption Recovery:
    If the registry hive containing the power settings hits a write error, perhaps Windows reverts to the System default hive, where hibernation is On by default.

    I'm not sure which (if any) of those happened.
    I'm only sure that I didn't overtly touch the hibernation settings.

    Unlikely any of them happened on Win10 22H2(with or without ESU) without
    user intervention and/or hardware related failure.

    To say it can't happen because it isn't intended to happen works fine in a perfect environment, but there is always the reality of "Self-Healing" scripts that Microsoft can use (and which Paul himself had alluded to).

    I just ran this debug command which is useful likely for everyone here:
    PS C:\> Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Kernel-Boot'; Id=27} | Select-Object TimeCreated, @{N='BootType'; E={$_.Properties[0].Value}}

    The results indicate no transition to a Hybrid Boot state, so the hyberfile.sys was not created by a user changing power settings or a "Fast Startup" toggle.

    Fast Startup does require hibernation's feature to be active, but it
    does not(nor has it ever) been capable of enabling hibernation for user sessions(any and all Windows logon accounts - MSA or Local) without user having independently enabled hibernation(powercfg /h on).


    I'm guessing (from the dataset) but since hiberfil.sys was recreated but
    the BootType remained 0, it probably wasn't a "Fast Startup" event.

    See above, when powercfg /h off, Fast Startup does not apply.

    Instead, it was most likely a "Live" System Change where something
    triggered the HiberbootEnabled registry value to reset to 1, which
    commanded the kernel to reserve that hyberfile.sys disk space.

    Possible when 'powercfg /h on' has been done <= user induced

    --
    ...w­¤?ñ?¤

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From ...w¡ñ?±?ñ@3:633/10 to All on Thu Apr 2 01:49:27 2026
    On 4/2/2026 12:19 AM, Maria Sophia wrote:

    Hi Winston,

    Like you, I have decades of experience working with developers in the
    Silicon Valley on million-dollar software far more complex than Win10.

    Like most people here, I have thousands upon thousands of successful
    product change requests (i.e., bugs and enhancements) to that software.

    At this stage, if your theories are correct, someone of those 'most
    people here' would/should have come to your way of thinking.
    - i.e. Until then, you're shooting from the hip, unfortunately there's nothing in the holster.


    Given your contacts up in Redmond, I thank you again for taking the effort
    to research & the time to respond. I appreciate the clarification about how the Servicing Stack and Defender updates behave on 22H2/ESU systems.

    Where we differ is not on the intended behavior of Windows, but on the observed behavior on this specific machine which is highly customized.

    That specific machine is yours - and your symptoms continue to indicate whatever you've done to customize or tweak or tamper is the cause.

    As you are well aware, Windows is almost unusable out of the box for power users who customize almost every aspect of the operating system setup.

    See above.


    Note that Paul has experienced changes in the file size while Zaidy has clearly experienced something causing him to turn it off constantly, so
    even in this tiny group of Windows 10 experts, it seems to happen here.

    Not even remotely applicable.

    --
    ...w­¤?ñ?¤

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Zaidy036@3:633/10 to All on Thu Apr 2 11:11:50 2026
    On 4/2/2026 1:36 AM, Maria Sophia wrote:
    Zaidy036 wrote:
    I'll let you know if hiberfile.sys ever comes back alive again.

    I run a daily batch and if you do just add this line:
    IF EXIST C:\hiberfil.sys POWERCFG /H OFF

    Hi Zaidy,

    Whoa! If you're running that command, there MUST be a reason.

    Did this hibernation-turning-on happen to you too (in the past)?

    Why else would you be running that failsafe catch-it-fast command?

    Not a problem I have experienced. Just a method if he wanted it off.

    I have a UPS and in case of power failure and it relies on Hyberfill to
    do a graceful shutdown before it stops running the attached items.



    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From ...w¡ñ?±?ñ@3:633/10 to All on Thu Apr 2 14:02:01 2026
    On 4/2/2026 11:16 AM, Maria Sophia wrote:
    ...Winston wrote:

    We're spinning our wheels at this point, since you can't explain at all
    what happened and I can only explain exactly what I know did not happen.


    Already covered how it happened and has always happened.
    User Intervention.

    --
    ...w­¤?ñ?¤

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Hank Rogers@3:633/10 to All on Thu Apr 2 19:06:37 2026
    Maria Sophia wrote on 4/2/2026 1:16 PM:
    ...Winston wrote:
    At this stage, if your theories are correct, someone of those 'most
    people here' would/should have come to your way of thinking.

    You seem to be emotionally defending Windows to the death, no matter what. The way you wrote all your posts show that Apple-like emotional attachment.

    I'm not emotional about it since I'm only warning others of what happened.

    I never disagree with any logically sensible statements as I apply Occam's Razor to my assessments, which means I apply *all* the known facts first.

    0. It happened.
    1. Hibernation had been purposefully disabled for years.
    2. The BootType history proves there were no Hybrid Boot events.
    3. Yet hiberfil.sys was recreated anyway in the middle of use.
    4. Occam's Razor says something in the running OS re-enabled hibernation.
    5. But I don't know what caused it, and neither do you.

    You emotionally disagree perhaps with those points above, and that's fine. This PSA won't be useful to you; but it was written to be useful to others.

    We're spinning our wheels at this point, since you can't explain at all
    what happened and I can only explain exactly what I know did not happen.


    Mary, I don't think anybody really gives a shit. Best to let it go and
    move on to your next PSA or Tutorial.

    C'mon, you can do better than this.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Hank Rogers@3:633/10 to All on Thu Apr 2 19:12:03 2026
    Maria Sophia wrote on 4/2/2026 6:35 PM:
    Let's leave it at that as there's nothing more that I can do to defend against your assertion that the moon is made out of cheese, since it isn't.

    Damn. I love cheese. But I'm glad you're giving up Mary. You
    shouldn't waste the rest of your life on bullshit like cheese on the moon.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From ...w¡ñ?±?ñ@3:633/10 to All on Fri Apr 3 03:38:10 2026
    On 4/2/2026 4:35 PM, Maria Sophia wrote:
    ...Winston wrote:
    We're spinning our wheels at this point, since you can't explain at all
    what happened and I can only explain exactly what I know did not happen. >>>

    Already covered how it happened and has always happened.
    User Intervention.

    Hi Winston,

    Let's stop here.
    OK?

    There was no user intervention that I am aware of.
    You may as well claim the moon is made of cheese.

    Fine.
    Just like your device, there are reports of this same 'cheesy' occurrence.
    But when you ask IT admins(managing 100,000+ devices) and MSFT
    developers if(its) reproducible and validated without user or admin intervention, the answer is no.
    User Intervention = anything the user/admin does to create the condition(enable hibernation, reset the device to factory,
    install/reinstall Windows[clean, repair, in-place - the latter two not choosing to keep settings] and/or installation 3rd party software or hardware).

    --
    ...w­¤?ñ?¤

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul@3:633/10 to All on Sun Apr 5 06:42:46 2026
    On Sun, 4/5/2026 1:29 AM, Maria Sophia wrote:
    Zaidy036 wrote:
    Why else would you be running that failsafe catch-it-fast command?

    Not a problem I have experienced. Just a method if he wanted it off.

    I have a UPS and in case of power failure and it relies on Hyberfill to
    do a graceful shutdown before it stops running the attached items.

    Well, almost every day something is failing because I have 3GB left on a
    1TB drive, so it's "always something" because most Microsoft engineers have likely never tested in their lives a machine so deficient in storage as
    mine is (given they likely only ever work on beefy monster machines).

    Yesterday it was Brave looping forever, today it was MsMpEng.
    It's like trying to find what killed a bug we stepped on with our foot.

    If it's not one thing, it's another.
    It turns out that hibernation was just one thing.

    1. Check free space
    wmic logicaldisk where "name='C:'" get freespace
    2. Check journal
    fsutil usn readjournal C:
    Kill it immediately as it will literally go on forever.
    Immediately means instantly. It will have a billion lines.
    Instantly means within a microsecond, if you can catch it.
    Otherwise it's too big to even copy a snippet.
    This scan implicated Windows Defender (but that's just the symptom).
    3. Identify the process writing the most:
    Get-Process | Sort-Object -Descending -Property PM | Select-Object -First 20
    4. Confirm it's Windows defender
    Get-Process -Id 3960 | Select-Object Name,Id,IOWriteBytes,IOReadBytes

    Name Id IOWriteBytes IOReadBytes
    ---- -- ------------ -----------
    MsMpEng 3960

    But you can kill it (which can be done) and delete its files.
    MsMpEng.exe (Windows Defender)
    Process ID: 3960
    Private memory: 360 MB
    Working set: 384 MB

    But like hibernation,shadow storage, brave and everything else, it's just a symptom because Windows' self-healing is atrocious when space is so low
    that the journal shows a billion lines per second of file activity.

    It's interesting how fragile Windows is when it's starved for C: space.


    To start with, browser caches do not have to be on disk.
    You can change the browser setting so the cache is in memory.

    The result of this, is not having to clean out cache2 folder
    every ten minutes :-)

    You're an experienced user. You have no experience at
    all doing filesystem housekeeping ? There are compression
    tools. You can move materials into secondary storage, and so on.

    *******

    One thing I found, is Windows had some sort of "incident", it
    wasn't a BSOD, but the OS tried to create a .dmp to hold
    the entire memory space. It stopped, when it got... about
    3GB from running out of RAM.

    Scan your system and see if there are any dump files.
    This also, may not be in cleanmgr.exe as an area needing cleaning.

    Now, I just did my 25H2 and I haven't used sequoiaview to
    see what kind of mess is in there. I've already used cleanmgr.exe
    to remove Windows.old (as I have a backup of the whole disk, and
    I've already restored three times until I got the blasted upgrade
    installed).

    In sequoiaview, I see that the .vhdx for Ubuntu has dropped from
    10GB to 6GB (zeroing and compaction done by the automation),
    so that must have happened during migration.

    [Picture] This site has become pretty well hopeless now...

    https://i.postimg.cc/SNZnkDbH/Sequoia-View-Color-Mode.jpg

    I just put my Downloads folder contents back, as to do the Upgrade
    to 25H2, I had to make some space (sound familiar?), and I moved
    22GB of Downloads over to another partition. Then, when Windows.old
    was purged by cleanmgr.exe, I could copy those back.

    Playing ping-pong with materials, is time consuming and a bore,
    but it goes with the job.

    Paul

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Mr. Man-wai Chang@3:633/10 to All on Sun Apr 5 21:28:17 2026
    On 4/1/2026 3:35 AM, Maria Sophia wrote:

    But the solution was simple once I saw that hiberfile.sys was the culprit:
    C:> powercfg /h off

    I always do the command after every installation of Windows! Not because
    it saves disk space, but I don't wanna trust nor use sleep or
    hibernation. Saving everything then shut down is the best way. :)

    --

    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)