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
add comment

1 Answer

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
add comment

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.