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

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
 
1

123Jim

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 /?
 
T

Tim Slattery

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.
 
M

MowGreen

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
 
V

VanguardLH

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"
 
J

John John - MVP

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
 
J

John John - MVP

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!
 
P

Paul

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
 
Joined
May 29, 2011
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top