How to find out from cmdline (!) if Hibernation is currently enabled?

  • Thread starter Thread starter Adriano Gennaro
  • Start date Start date
A

Adriano Gennaro

Assume I want to find out from cmdline (=in CommandPrompt) if currently Hibernation is enabled or not.
How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.

Adriano
 
Adriano Gennaro said:
Assume I want to find out from cmdline (=in CommandPrompt) if currently
Hibernation is enabled or not.
How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.

Try:
powercfg /Q

Maybe you'll find something better in:
powercfg /?
 
Assume I want to find out from cmdline (=in CommandPrompt) if currently Hibernation is enabled or not.
How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.

Try

powercfg /query

That lists settings for the current power scheme. The hibernate
settings for AC and DC power are listed there separately.
 
Adriano said:
Assume I want to find out from cmdline (=in CommandPrompt) if currently Hibernation is enabled or not.
How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.

Adriano


Did you try powercfg /? or powercfg /help yet ?

Perhaps this shows Hibernate's status ?

-GETACTIVESCHEME
Retrieve the currently active power scheme.
Usage: POWERCFG -GETACTIVESCHEME

Nope, it just shows the power scheme.
IIRC, Hibernate shows as one of the shutdown options *if* the system can
hibernate and *if* it's been turned On.


MowGreen
================
*-343-* FDNY
Never Forgotten
================

"Security updates should *never* have *non-security content* prechecked
 
Adriano said:
Assume I want to find out from cmdline (=in CommandPrompt) if
currently Hibernation is enabled or not. How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.

Note: The FollowUp-To header is irrevelant in your post to one
newsgroup. It shouldn't be used at all except for a few rare groups.

Have you tried running:

powercfg.exe /?

to see the /query parameter? If you run:

powercfg.exe /query

you will see whether or not hibernate mode is enabled. If you don't
want all the other output and just the line(s) that state the hibernate
mode then use the 'find' command to show just the matching lines, as in:

powercfg /query | find /i "hibernates"
 
Assume I want to find out from cmdline (=in CommandPrompt) if currently Hibernation is enabled or not.
How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.


powercfg /query

John
 
Assume I want to find out from cmdline (=in CommandPrompt) if currently Hibernation is enabled or not.
How can I do this?

I can turn it on/off with:

powercfg /hibernate off

but I cannot show current status with "powercfg" as far as I know.

Another post with an annoying follow-up to a different group! If you
only want follow ups to a different group please don't pester readers in
other groups!
 
John said:
Another post with an annoying follow-up to a different group! If you
only want follow ups to a different group please don't pester readers in
other groups!

"Herbert Meister" has more than one nym. And Herb never replies
to any answer he/she/it gets, so you can never know whether the
answer helped or not.

Paul
 
i too was looking for an answer to above. but didn't find what i was looking for so wrote this

>NUL: attrib 2>NUL: "%SystemDrive%\hiberfil.sys" -h -s
if exist %SystemDrive%\hiberfil.sys Echo Hibernate Feature is TURNED on
>NUL: attrib 2>NUL: "%SystemDrive%\hiberfil.sys" +h +s
 
Back
Top