+ Post New Thread
Results 1 to 9 of 9
Windows 7 Thread, Hibernation and Sleep in Technical; Does anybody know if it is possible to disable hibernation and sleep in Windows 7 via GPO - we only ...
  1. #1
    eddyc's Avatar
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    445
    Thank Post
    105
    Thanked 49 Times in 45 Posts
    Rep Power
    22

    Hibernation and Sleep

    Does anybody know if it is possible to disable hibernation and sleep in Windows 7 via GPO - we only want to apply it to our worksatins and not to our staff laptops and therefore doing it locally would not be an acceptable option - as we use one image for all hardware.

    Any help is appreciated.

    Ed

  2. #2

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,963
    Thank Post
    160
    Thanked 153 Times in 117 Posts
    Rep Power
    50
    Can you not create a power plan in control panel settings>power options? You can set time to sleep and hibernate, so I assume setting to 0 would turn them off?

    Dont know if you need server 2008 for it to work though

  3. #3
    eddyc's Avatar
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    445
    Thank Post
    105
    Thanked 49 Times in 45 Posts
    Rep Power
    22
    Quote Originally Posted by sidewinder View Post
    Can you not create a power plan in control panel settings>power options? You can set time to sleep and hibernate, so I assume setting to 0 would turn them off?

    Dont know if you need server 2008 for it to work though
    I've given that a go already with no sucess - if they are set to "0" they never enter sleep/hibernation automatically but do still offer them on the start menu.

  4. #4
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,477
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    53
    Hi

    I have the same problem.

    Richard

  5. #5

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,271
    Thank Post
    884
    Thanked 2,749 Times in 2,322 Posts
    Blog Entries
    11
    Rep Power
    785
    you can switch off hybernation in command prompt:
    Open an elevated Command Prompt with administrator rights by typing Cmd in Start Search, and then hit Ctrl + Shift + Enter
    and then type
    powercfg /hibernate off

    Its not via Group policy but may help out a bit

  6. #6

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,271
    Thank Post
    884
    Thanked 2,749 Times in 2,322 Posts
    Blog Entries
    11
    Rep Power
    785
    This should remove or at least disable sleep:
    Removing the Sleep function in the Shutdown menu - Vista Forums

    and you could probably make it into an ADMX template to do it via GP.

    also:
    To disable the sleep selection on the start menu:
    Create the registry key below if it does not already exist
    HKLM\Software\Policies\Microsoft\Power\PowerSettin gs\abfc2519-3608-4c2a-94ea-171b0ed546ab
    Create the Dword "ACSettingIndex" and set value to 0

    To disable hibernation:
    At an elevated cmd prompt type - "powercfg -h off"

    This is the group policy setting for the sleep disable:
    Power.admx
    Machine System\Power Management\Sleep Settings Allow Standby States (S1-S3) When Sleeping (Plugged In)
    At least Windows Vista Dictates whether or not Windows is allowed to use standby states when sleeping the computer.
    When this policy is enabled, Windows may use standby states to sleep the computer. If this policy is disabled, the only sleep state a computer may enter is hibernate.
    Disable Sleep and/or Hibernation by all users

    There is also this which is by GP but takes the start menu with it:
    http://maximumpcguides.com/windows-7...rnate-buttons/
    Last edited by SYNACK; 19th January 2010 at 12:03 PM.

  7. #7
    ranj's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    733
    Thank Post
    101
    Thanked 42 Times in 32 Posts
    Rep Power
    25
    I am currently deploying 7 out to some workstations. On testing though I am finding that desktops and laptops are frequently going to sleep after about 10 minutes. The machines have to be pressed on by the power button for them to resume windows. Can I disable this via GPO if so how would I do it. Can someone provide me with the GPO link?

    We are running Windows 7 enterprise 32 bit supported by Windows 2008 DC's (not r2).

  8. #8

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,824
    Thank Post
    971
    Thanked 1,385 Times in 849 Posts
    Blog Entries
    1
    Rep Power
    457
    This is actually quite easy for parts of it, in w7 gpo you should take a look at:
    computer conf->Policies->System->Power Management
    in there you can tweak all the times, buttons etc. To disable hibernate/sleep just set those settings in "Sleep Settings" to 0 and boom it should be off.

  9. Thanks to ZeroHour from:

    PEO (18th January 2013)

  10. #9
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,505
    Thank Post
    10
    Thanked 508 Times in 445 Posts
    Rep Power
    116
    You can turn sleep off with GP, to turn hibernate off completely use "powercfg -h off" in the SetupComplete.cmd file which runs after sysprep/WDS. This file is run with elevated privileges. I have tried scripting powercfg with startup scripts and GPP but it doesn't seem to get elevated with those methods.

  11. 2 Thanks to DMcCoy:

    PEO (18th January 2013), wadtech (10th April 2012)



SHARE:
+ Post New Thread

Similar Threads

  1. For you, who cant get to sleep tonight!
    By EduTech in forum General Chat
    Replies: 1
    Last Post: 25th December 2008, 05:23 PM
  2. Prevent Standby and Hibernation using GPO
    By roland in forum How do you do....it?
    Replies: 4
    Last Post: 4th March 2008, 02:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •