Win10 command line sleep and hibernate

powercfg /change standby-timeout-ac 0
powercfg /change standby-timeout-dc 0
powercfg /change monitor-timeout-ac 0
powercfg /change monitor-timeout-dc 0
powercfg /change hibernate-timeout-ac 0
powercfg /change hibernate-timeout-dc 0

AC and DC determine ‘on battery’ and ‘plugged in’, while 0 disables these options.

powercfg /list

i.e.

C:\Windows\System32>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)
Power Scheme GUID: 49ef8fc0-bb7f-488e-b6a0-f1fc77ec649b (Dell) *

Export powercfg settings

C:\Windows\System32>powercfg /export /?

POWERCFG /EXPORT <FILENAME> <GUID>

Description:
Exports a power scheme, represented by the specified GUID, to the specified
file.

Parameter List:
<FILENAME> Specifies a fully-qualified path to a destination file.

<GUID> Specifies a power scheme GUID. A power scheme GUID is returned
from the “POWERCFG /LIST” command.

Examples:
POWERCFG /EXPORT c:\scheme.pow 381b4222-f694-41f0-9685-ff5bb260df2e

Import powercfg

C:\Windows\System32>powercfg /import /?

POWERCFG /IMPORT <FILENAME> [<GUID>]

Description:
  Imports a power scheme from the specified file.

Parameter List:
  <FILENAME>    Specifies a fully-qualified path to a file generated by the
                "POWERCFG /EXPORT" command.

  <GUID>        Specifies the GUID for the imported scheme. If no GUID is
                specified, a new GUID will be created.

Examples:
  POWERCFG /IMPORT c:\scheme.pow

 

Comments are closed.