Trying to set group policy to never put the system to sleep

jbobst
jbobst used Ask the Experts™
on
I am trying to setup a general purpose lab computer to never go to sleep, no matter what user is logged in.  This is a Windows 7 Pro computer.  I went into gpedit.msc, under Computer Configuration\Administrative Template\System\Power Management\Sleep Settings\Specify the Unattended Sleep Timeout setting.  In there, it says that if you enable this policy and specify 0 seconds, Windows will not automatically transition to sleep.  I made this change, but the computer still goes to sleep based on the power scheme settings for each user.  I assumed that group policy is the "authority" of the computer and would at least set each user profile to never go to sleep, but this is not the case apparently.  What am I doing wrong?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sr. Tech lead
Top Expert 2013
Commented:
you can use command line using powercfg tool to disable sleep option

c:\windows\system32\powercfg.exe -change -monitor-timeout-ac 0
c:\windows\system32\powercfg.exe -change -monitor-timeout-dc 0
c:\windows\system32\powercfg.exe -change -disk-timeout-ac 0
c:\windows\system32\powercfg.exe -change -disk-timeout-dc 0
c:\windows\system32\powercfg.exe -change -standby-timeout-ac 0
c:\windows\system32\powercfg.exe -change -standby-timeout-dc 0
c:\windows\system32\powercfg.exe -change -hibernate-timeout-ac 0
c:\windows\system32\powercfg.exe -change -hibernate-timeout-dc 0


this question was asked many times on the group and they have ended with command line option

below are ref:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_26267518.html

http://www.experts-exchange.com/Web_Development/Fonts/Q_21784591.html

Author

Commented:
So what you are saying is that gpedit.msc console with all those options will not work?  Why does Windows include this if it doesn't work and we have to resort to command line options?
Haresh NikumbhSr. Tech lead
Top Expert 2013

Commented:
only setting Specify the Unattended Sleep Timeout setting. will not work, you have to disable hibernet as well as display adapter options too.
Top Expert 2016

Commented:
Is this what you have set in group policy?
Machoine Settings

Author

Commented:
I actually have "Specify the Unattended Sleep Timeout (Plugged In)" option enabled and set to "0" so it never goes to sleep.  These are desktop systems and will never be on battery.Untitled.jpg

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial