Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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 – Stan Mar 4 '11 at 7:35

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.