Take the 2-minute tour ×

Normal way to disable Win7 sleep is to go to Power Management and find current power profile, then select never for sleep option. However, I was wondering if there's any way to do this in command line or any other faster way? Please advise, thanks.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

powercfg is the command line tool.


powercfg -?

to see help.

(For regular use, you'll want to wrap it in a PowerShell or Cmd script.)

share|improve this answer
powercfg -change -standby-timeout-ac 0, from superuser.com/questions/90415/prevent-sleep-in-scripts –  Stan Mar 4 '11 at 7:35
add comment

Nice Shortcuts are:

  • powercfg -ALIASES # Lists named aliases for available profiles.
  • powercfg -S SCHEME_MIN #Activates the (High-Performance) Scheme with the alias SCHEME_MIN
  • powercfg -S SCHEME_MAX #Activates the (Max-Energie-Saving) Scheme with the alias SCHEME_MAX
  • powercfg -S SCHEME_BALANCED # ... Balanced Energie Scheme



share|improve this answer
add comment

Your Answer


