[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5992
  • Last Modified:

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

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?
0
jbobst
Asked:
jbobst
  • 2
  • 2
1 Solution
 
Haresh NikumbhCommented:
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
0
 
jbobstAuthor 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?
0
 
Haresh NikumbhCommented:
only setting Specify the Unattended Sleep Timeout setting. will not work, you have to disable hibernet as well as display adapter options too.
0
 
David Johnson, CD, MVPOwnerCommented:
Is this what you have set in group policy?
Machoine Settings
0
 
jbobstAuthor 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
1

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now