Windows Hibernate From Command Line
Posted By admin On 02.12.20- Windows Hibernate From Command Line Free
- Windows Hibernate From Command Line Download
- Windows Hibernate From Command Line System
- Windows 10 Hibernate From Command Line
- Windows Vista Hibernate Command Line
- Windows Hibernate Command Prompt
Use powercfg.exe to control power plans—also called power schemes—to use the available sleep states, to control the power states of individual devices, and to analyze the system for common energy-efficiency and battery-life problems.
Feb 11, 2016 How to enable or disable hibernate in Windows 10. To enable hibernate in Windows 10, open the Command Prompt again and type powercfg.exe /hibernate on and press the Enter key. We can hibernate a windows computer from command prompt using shutdown command. Shutdown has various switches for different operations like shutdown, reboot, hibernate, log off etc. The command for hibernating windows computer is given below. We can hibernate a Windows computer from command prompt using shutdown command. Shutdown command has various switches for different operations like shutdown, reboot, hibernate, log off etc. The command for hibernating windows computer is given below. This works on all Windows versions – XP, Vista, Windows 7, Server 2003. How to enable or disable hibernate in Windows 10. To enable hibernate in Windows 10, open the Command Prompt again and type powercfg.exe /hibernate on and press the Enter key.
Syntax
How to sleep Windows 10 from the command line Recently one of our readers asked us how to make his Windows 10 PC enter sleep from the command line. This can be definitely useful if you are using the sleep mode frequently and want to create a shortcut to put your PC into sleep directly or via some batch file. At the command prompt, type powercfg.exe /hibernate off, and then press Enter. Type exit, and then press Enter to close the Command Prompt window. To make hibernation available, follow these steps: Press the Windows button on the keyboard to open Start menu or Start screen. Search for cmd. There are two places that you can usually go to put your PC into sleep or hibernate mode, either the Shutdown option in the Start menu or the Shut Down Windows dialog box by pressing the Alt + F4 key combination on the desktop. But if you want to do it from a command line so you can put it in a.
Powercfg command lines use the following syntax:
powercfg/option [arguments ] [ /?]
where option is one of the options listed in the following table, and arguments is one or more arguments that apply to the selected option. Including /? in a command line displays help for the specified option. Options and arguments are described in more detail later in this topic.
Option | Description |
---|---|
/?, -help | Displays information about command-line parameters. |
/list, /L | Lists all power schemes. |
/query, /Q | Displays the contents of a power scheme. |
/change, /X | Modifies a setting value in the current power scheme. |
/changename | Modifies the name and description of a power scheme. |
/duplicatescheme | Duplicates a power scheme. |
/delete, /D | Deletes a power scheme. |
/deletesetting | Deletes a power setting. |
/setactive, /S | Makes a power scheme active on the system. |
/getactivescheme | Retrieves the currently active power scheme. |
/setacvalueindex | Sets the value associated with a power setting while the system is powered by AC power. |
/setdcvalueindex | Sets the value associated with a power setting while the system is powered by DC power. |
/import | Imports all power settings from a file. |
/export | Exports a power scheme to a file. |
/aliases | Displays all aliases and their corresponding GUIDs. |
/getsecuritydescriptor | Gets a security descriptor associated with a specified power setting, power scheme, or action. |
/setsecuritydescriptor | Sets a security descriptor associated with a power setting, power scheme, or action. |
/hibernate, /H | Enables and disables the hibernate feature. |
/availablesleepstates, /A | Reports the sleep states available on the system. |
/devicequery | Returns a list of devices that meet specified criteria. |
/deviceenableawake | Enables a device to wake the system from a sleep state. |
/devicedisablewake | Disables a device from waking the system from a sleep state. |
/lastwake | Reports information about what woke the system from the last sleep transition. |
/waketimers | Enumerates active wake timers. |
/requests | Enumerates application and driver Power Requests. |
/requestsoverride | Sets a Power Request override for a particular Process, Service, or Driver. |
/energy | Analyzes the system for common energy-efficiency and battery life problems. |
/batteryreport | Generates a report of battery usage. |
/sleepstudy | Generates a diagnostic system power transition report. |
/srumutil | Dumps Energy Estimation data from System Resource Usage Monitor (SRUM). |
/systemsleepdiagnostics | Generates a diagnostic report of system sleep transitions. |
/systempowerreport | Generates a diagnostic system power transition report. |
Descriptions of command-line options
The following sections describe Powercfg command-line options and arguments.
-help or /?
Displays information about command-line parameters.
Syntax:
powercfg/?
/list or /L
Lists all power schemes.
Syntax:
powercfg/list
/query or /Q
Displays the contents of the specified power scheme.
Syntax:
powercfg/query [scheme_GUID [sub_GUID ]]
If neither the parameter scheme_GUID or sub_GUID are provided, the settings of the current active power scheme are displayed. If the parameter sub_GUID is not specified, all settings in the specified power scheme are displayed.
Arguments:
scheme_GUID
sub_GUID
Examples:
powercfg /query
powercfg /query 381b4222-f694-41f0-9685-ff5bb260df2e 238c9fa8-0aad-41ed-83f4-97be242c8f20
/change or /X
Modifies a setting value in the current power scheme.
Syntax:
/changesettingvalue
Arguments:
setting
Specifies one of the following options:- monitor-timeout-ac
- monitor-timeout-dc
- disk-timeout-ac
- disk-timeout-dc
- standby-timeout-ac
- standby-timeout-dc
- hibernate-timeout-ac
- hibernate-timeout-dc
value
Examples:
powercfg /change monitor-timeout-ac 5
/changename
Modifies the name of a power scheme and optionally its description.
Syntax:
powercfg/changenamescheme_GUIDname [description ]
Arguments:
scheme_GUID
name
description
Examples:
powercfg /changename 381b4222-f694-41f0-9685-ff5bb260df2e 'Customized Balanced'
/duplicatescheme
Duplicates the specified power scheme. The resulting GUID which represents the new scheme is displayed.
Syntax:
powercfg/duplicateschemescheme_GUID [destination_GUID ]
Arguments:
scheme_GUID
destination_GUID
Examples:
powercfg /duplicatescheme 381b4222-f694-41f0-9685-ff5bb260df2e
/delete or /D
Deletes the power scheme with the specified GUID.
Syntax:
powercfg/deletescheme_GUID
Arguments:
scheme_GUID
Examples:
powercfg /delete 381b4222-f694-41f0-9685-ff5bb260df2e
/deletesetting
Deletes a power setting.
Syntax:
powercfg/deletesettingsub_GUIDsetting_GUID
Arguments:
sub_GUID
setting_GUID
Examples:
powercfg /deletesetting 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da
/setactive or /S
Makes the specified power scheme active on the system.
Syntax:
powercfg/setactivescheme_GUID
Arguments:
scheme_GUID
Examples:
powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
/getactivescheme
Retrieves the currently active power scheme.
Syntax:
powercfg/getactivescheme
/setacvalueindex
Sets the value associated with a specified power setting while the system is powered by AC power.
Syntax:
powercfg/setacvalueindexscheme_GUIDsub_GUIDsetting_GUIDsetting_index
Arguments:
scheme_GUID
sub_GUID
setting_GUID
setting_index
Examples:
powercfg /setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0
/setdcvalueindex
Sets the value associated with a specified power setting while the system is powered by DC power.
Syntax:
powercfg/setdcvalueindexscheme_GUIDsub_GUIDsetting_GUIDsetting_index
Arguments:
scheme_GUID
sub_GUID
setting_GUID
setting_index
Examples:
powercfg /setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 300
/import
Imports a power scheme from the specified file.
Syntax:
powercfg/importfile_name [GUID ]
Arguments:
file_name
GUID
Examples:
powercfg /import c:scheme.pow
/export
Exports a power scheme, represented by the specified GUID, to the specified file.
Syntax:
powercfg/exportfile_nameGUID
Arguments:
file_name
GUID
Examples:
powercfg /export c:scheme.pow 381b4222-f694-41f0-9685-ff5bb260df2e
Windows Hibernate From Command Line Free
/aliases
Displays a list of aliases and their corresponding GUIDs. These aliases may be used instead of a GUID in any command.
Syntax:
powercfg/aliases
NoteSome settings do not contain aliases. For a full list of GUIDs, use powercfg /query.
/getsecuritydescriptor
Gets the security descriptor associated with the specified power setting, power scheme, or action.
Syntax:
powercfg/getsecuritydescriptorGUIDaction
Arguments:
GUID
action
Specifies one of the following actions:- ActionSetActive
- ActionCreate
- ActionDefault
Examples:
powercfg /getsecuritydescriptor 381b4222-f694-41f0-9685-ff5bb260df2e
powercfg /getsecuritydescriptor ActionSetActive
/setsecuritydescriptor
Sets a security descriptor associated with the specified power setting, power scheme, or action.
Syntax:
The GTA Vice City Free Download Full Version is available for download on Windows PC/Laptops. Grand Theft Auto Vice City free download on Windows 10, 8, 8.1 and 7. Users can download GTA Vice for free on their Windows computer from the download link shared in this article. Gta vice city free download new version.
powercfg/setsecuritydescriptorGUIDactionSDDL
Arguments:
GUID
action
Specifies one of the following actions:- ActionSetActive
- ActionCreate
- ActionDefault
SDDL
Examples:
powercfg /setsecuritydescriptor 381b4222-f694-41f0-9685-ff5bb260df2e O:BAG:SYD:P(A;CI;KRKW;;;BU)(A;CI;KA;;;BA)(A;CI;KA;;;SY)(A;CI;KA;;;CO)
powercfg /setsecuritydescriptor ActionSetActive O:BAG:SYD:P(A;CI;KR;;;BU)(A;CI;KA;;;BA)(A;CI;KA;;;SY)(A;CI;KA;;;CO)
/hibernate or /h
Enables or disables the hibernate feature; also, sets the hiberfile size.
Syntax:
powercfg/hibernate
powercfg/hibernate [onoff]
powercfg/hibernate [ /sizepercent_size ]
powercfg/hibernate [ /typereducedfull ]
Arguments:
On
Off
/sizepercent_size
/typereducedfull
Specifies the desired hiberfile type. A reduced hiberfile only supports hiberboot.Note A hiberfile that has a custom default size, or HiberFileSizePercent >= 40, is considered as a full hiberfile. HiberFileSizePercent is set in the registry in HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPower.To change the hiberfile type to reduced, the OS has to manage the default hiberfile size. To do this, run the following commands:
powercfg /hibernate /size 0
powercfg /hibernate /type reduced
Examples:
powercfg /hibernate off
powercfg /hibernate /size 100
powercfg /hibernate /type reduced
/availablesleepstates or /A
Reports the sleep states available on the system. Attempts to report reasons why sleep states are unavailable.
Syntax:
powercfg/availablesleepstates
/devicequery
Returns a list of devices that meet the specified criteria.
Syntax:
powercfg/devicequeryquery_flag
Arguments:
query_flag
Specifies one of the following criteria:wake_from_S1_supported
wake_from_S2_supported
wake_from_S3_supported
wake_from_any
S1_supported
S2_supported
S3_supported
wake_programmable
wake_armed
all_devices
Examples:
powercfg /devicequery wake_armed
/deviceenableawake
Enables the specified device to wake the system from a sleep state.
Syntax:
powercfg/deviceenableawakedevice_name
Arguments:
device_name
Examples:
powercfg /deviceenableawake 'Microsoft USB IntelliMouse Optical'
/devicedisablewake
Disables the specified device from waking the system from a sleep state.
Syntax:
powercfg/devicedisablewakedevice_name
Arguments:
device_name
Examples:
Windows Hibernate From Command Line Download
powercfg /devicedisablewake 'Microsoft USB IntelliMouse Optical'
/lastwake
Reports information about what woke the system from the last sleep transition.
Syntax:
powercfg/lastwake
/waketimers
Enumerates the active wake timers. If enabled, the expiration of a wake timer wakes the system from sleep and hibernate states.
Syntax:
powercfg/waketimers
/requests
Enumerates application and driver Power Requests. Power Requests prevent the computer from automatically powering off the display or entering a low-power sleep mode.
Syntax:
powercfg/requests
/requestsoverride
Sets a Power Request override for a particular process, service, or driver. If no parameters are specified, this command displays the current list of Power Request overrides.
Syntax:
powercfg/requestsoverride [caller_typenamerequest ]
Arguments:
Caller_type
name
request
Specifies one or more of the following Power Request types:- Display
- System
- Awaymode
Examples:
powercfg /requestsoverride process wmplayer.exe display system
/energy
Analyzes the system for common energy-efficiency and battery-life problems and generates a report, an HTML file, in the current path.
Syntax:
powercfg/energy [ /outputfile_name ] [ /xml] [ /durationseconds ]
powercfg/energy/trace [ /dfile_path ] [ /xml] [ /durationseconds ]
The /energy option should be used when the computer is idle and has no open programs or documents.
Arguments:
/outputfile_name
Windows Hibernate From Command Line System
/xml
/durationseconds
/trace
/dfile_path
Examples:
powercfg /energy
powercfg /energy /output 'longtrace.html' /duration 120
/batteryreport
Generates a report of battery usage characteristics over the lifetime of the system. Running powercfg /batteryreport generates an HTML report file in the current path.
Syntax:
powercfg/batteryreport [ /outputfile_name ] [ /xml]
powercfg/batteryreport [ /durationdays ]
Arguments:
/outputfile_name
/outputfile_name/xml
/durationdays
Examples:
powercfg /batteryreport /output 'batteryreport.html'
powercfg /batteryreport /duration 4
/sleepstudy
Generates a diagnostic report of modern standby quality over the last three days on the system. The report is a file that is saved in the current path.
Syntax:
powercfg/sleepstudy [ /outputfile_name ] [ /xml]
powercfg/sleepstudy [ /durationdays ]
powercfg/sleepstudy [ /transformxmLfile_name.xml ] [ /outputfile_name.html ]
Arguments:
/outputfile_name
/outputfile_name/xml
/durationdays
/transformxmlfile_name.xml/outputfile_name.html
Examples:
powercfg /sleepstudy /output 'sleepstudy.html'
powercfg /sleepstudy /duration 7
/srumutil
Enumerates the entire Energy Estimation data from the System Resource Usage Monitor (SRUM) in an XML or CSV file.
Syntax:
powercfg/srumutil [ /outputfile_name ] [ /xml] [ /csv]
Arguments:
/outputfile_name
/outputfile_name/xml
/outputfile_name/csv
Examples:
powercfg /batteryreport /output 'srumreport.xml' /xml
/systemsleepdiagnostics
Generates a report of intervals when the user was not present over the last three days on the system, and if the system went to sleep. This option generates a report, an HTML file, in the current path.
This command requires administrator privileges and must be executed from an elevated command prompt.
Syntax:
powercfg/systemsleepdiagnostics [/outputfile_name ] [/xml ]
Arguments:
/outputfile_name
/xml
Windows 10 Hibernate From Command Line
/durationdays
/transformxmlfile_name
Windows Vista Hibernate Command Line
Examples:
powercfg /systemsleepdiagnostics
powercfg /systemsleepdiagnostics /output 'system-sleep-diagnostics.html'
powercfg /systemsleepdiagnostics /output 'system-sleep-diagnostics.xml' /XML
powercfg /systemsleepdiagnostics /transformxml 'system-sleep-diagnostics.xml'
/systempowerreport or /spr
Generates a report of system power transitions over the last three days on the system, including connected standby power efficiency. This option generates a report, an HTML file, in the current path.
This command requires administrator privileges and must be executed from an elevated command prompt.
Syntax:
powercfg/getsecuritydescriptorGUIDaction
Arguments:
/outputfile_name
Windows Hibernate Command Prompt
/xml
/durationdays
/transformxmlfile_name
Examples:
powercfg /systempowerreport
powercfg /systempowerreport /output 'sleepstudy.html'
powercfg /systempowerreport /output 'sleepstudy.xml' /XML
powercfg /systempowerreport /transformxml 'sleepstudy.xml'