Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 2 down vote accepted

powercfg is the command line tool.

Use

powercfg -?

to see help.

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

share|improve this answer
1  
powercfg -change -standby-timeout-ac 0, from superuser.com/questions/90415/prevent-sleep-in-scripts –  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

cheers

Kai

share|improve this answer

Your Answer

 
discard

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.