Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to see from commandline (!!!) if hibernation is on or off?

26 Jan 2016   #1
pstein

win7pro 64bit
 
 
How to see from commandline (!!!) if hibernation is on or off?

How can users check from commandline (!!!) if hibernation is currently on or off?

When I search through the Internet then thousands of articles describe how to turn it e.g. on e.g. by

powercfg -H on

But what if I just want to let Win just show the current state WITHOUT to change it?

Is there really no way of just checking it from command line (NOT by Control Panel)?

Peter


My System SpecsSystem Spec
.
26 Jan 2016   #2
G Force

Windows 7 Professional x64
 
 

I have an SSD therefor I do not use Hibernation. It's a horrible idea.

To find out if the feature is enabled, the file must exist, hiberfil.sys

To find out if the file exists, its a hidden file, try


Or try
Code:
assoc C:\hiberfil.sys
then try it with quotes "C:\hiberfil.sys".
My System SpecsSystem Spec
26 Jan 2016   #3
pstein

win7pro 64bit
 
 

This is excatly NOT true!

An existing hiberfil.sys can be an old fragment file which is not cleaned up. Or it was restored from a previous file/folder tree restoration.

Furthermore I have seen three month old hiberfil.sys files although the system was reboot a couple of times in the meantime.
Very strange!

So again: I search for a cmdline hibernation state detection command
My System SpecsSystem Spec
.

26 Jan 2016   #4
G Force

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by pstein View Post
This is excatly NOT true!

An existing hiberfil.sys can be an old fragment file which is not cleaned up. Or it was restored from a previous file/folder tree restoration.

Furthermore I have seen three month old hiberfil.sys files although the system was reboot a couple of times in the meantime.
Very strange!

So again: I search for a cmdline hibernation state detection command
The possibility you described is slimmer than you think. If Hibernation was turned off properly, the hiberfil.sys will have been removed along with it.

I've read deeper into the help file. Here you go . Stay thirsty, my friend.

My System SpecsSystem Spec
02 Feb 2016   #5
Ztruker

Windows 10 Pro X64
 
 

powercfg /query will also tell you. Look for the data after:

Quote:
Power Setting GUID: 9d7815a6-7ee4-497e-8888-515a05f02364 (Hibernate after)
GUID Alias: HIBERNATEIDLE
Minimum Possible Setting: 0x00000000
Maximum Possible Setting: 0xffffffff
Possible Settings increment: 0x00000001
Possible Settings units: Seconds
Current AC Power Setting Index: 0x00000000
Current DC Power Setting Index: 0x00000000
Both A/C and DC are set to 0 which means Hibernate is disabled.
My System SpecsSystem Spec
Reply

 How to see from commandline (!!!) if hibernation is on or off?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Hibernation issues with Win 7 - no hibernation but goes to login scr
I have encountered this a few times and I thought of collating past experiences of other users on their successful attempt to restore the eco friendly hibernation feature. I personally favour hibernate than sleep as sleep slowly bleeds your battery away. I just installed a 512GB M4 Crucial SSD...
General Discussion
Cannot renable hibernation. Hibernation not working.
Hey, I recently bought a brand new Tune-Up Utilities 2012 software:).I disabled hibernation file using tune up utilities. That time I don't use hibernation function;). But now I realized how hibernation is a better option then shutdown:sleepy:. So I renabled hibernation file again using tune-up, as...
Performance & Maintenance
Creating custom commandline for file association table
HI, How can I create a custom command line to be used when I double click on a file with a specific extension. For example for a .jar file I'd like to have this: javaw.exe -jar "%1" -myOpts Can you have more than one custom command line for an extension and use the RightClick context menu to...
General Discussion
action(s) for commandline?
hi all! i just discovered "action(s)" and i would like to know if there is a way to set it up to execute a command line task such as: csp -i <file name> -o <output bmp) can i set up action(s) to ask for the input file name and the output bmp path and the execute the entire task? regards &...
General Discussion
Uninstalling Software via commandline
Hallo, Is there a propper way of uninstalling software from my Windows pc via the commandline ? i found something like: msiexec /uninstall MSIPACKAGE.msi But this works only if i got the MSI-package i installed the software with. (It also does not work if i got a newer version MSI...
Software
am lost in the commandline
Hi this is a bit off topic but i am running windows 08 server core in virtual box to try and learn it,The problem i am having is that i would like to run vboxguest additions so that the mouse runs seamlessly i can get to the D:/ drive and do a DIR to see what is in there (see attachment) i would...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App