In Windows, we can turn on or turn off hibernation feature. When it is turned off, we don’t see ‘hibernate‘ option in the windows shutdown menu. We can enable or disable hibernation feature from windows command line using ‘powercfg‘ command.
Turn on hibernation:
We can enable hibernation by executing the below command from elevated administrator command prompt.
powercfg /hibernate on
Turn off hibernation
Hibernation can be disabled by running the below command.
powercfg /hibernate off
Both the enable and disable commands should be run from elevated administrator command prompt. Executing them in normal command prompt would print the below error message.
c:\>powercfg /hibernate on You do not have permission to enable or disable the Hibernate feature. c:\>
Which Windows versions this command can be used?
The above command works on Windows 7, Vista, XP, Server 2008 and Server 2003 versions. In Windows 7, instead of ‘/hibernate‘ we can use ‘-hibernate‘(Linux style format for options).
Set hibernate timeout
Related posts:
Hibernate windows computer from command line