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.

link|improve this question

feedback

1 Answer

up vote 1 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.)

link|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
feedback

Your Answer

 
or
required, but never shown

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