To disable Hibernation the HibernateEnabled registry key has to be 0 (zero) to the following registry path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power
Here is the ADM Template:
;------------------------------------------------------------------------------
CLASS MACHINE
CATEGORY !!System
CATEGORY !!PowerManagement
KEYNAME "CurrentControlSet\Control\Power"
POLICY !!Pol_Disable_Hibernation
EXPLAIN !!Explain_Disable_Hibernation
VALUENAME "HibernateEnabled"
VALUEON NUMERIC 0
VALUEOFF NUMERIC 1
END POLICY
END CATEGORY;
END CATEGORY;
[Strings]
System="System"
PowerManagement ="Power Management"
;------------------------------------------------------------------------------
; Options
;------------------------------------------------------------------------------
Options="Options"
Pol_Disable_Hibernation="Disable Hibernation on Windows 7"
Explain_Disable_Hibernation="Disable Hibernation on Windows 7"
;------------------------------------------------------------------------------
Save this text in file with ADM extension and import it to Windows Server 2008 GPO.
After applying this GPO and restarting the target computer, the hiberfil.sys file is deleted and Hibernate is removed from Windows 7 Start Menu.
Hi Tom - I have a mixed 2003/2008 AD and I imported your ADM on my 2008 server, applied it, but it has had no effect on my Windows 7 machines...
ReplyDeleteChange :
Delete"KEYNAME "CurrentControlSet\Control\Power"
for
KEYNAME "SYSTEM\CurrentControlSet\Control\Power"
Pls check again did the GPO is properly applied on your OU in AD. I've check it again on my side and it is ok.
ReplyDeleteI Have windows server 2008 R2 environment and we have several policys that is working in the domain,
ReplyDeleteI have successfully created this ADM template and imported it to gpo and "checked" enable but it has no effect to any user!
Does Anyone have Any ideas
for those who failed to get this to go, is the GPO linked to an OU with USERs or a COMPUTERs in it? as it needs to be an OU with COMPUTER accounts in it
ReplyDeleteHKLM, then the policy will be located under Computer Configuration\Policies\Administrative Templates
ReplyDeleteHKCU, the policy will be located under User Configuration\Administrative Templates
Cannot find Classic Administrative Templates, plz help.
ReplyDeleteIt disabled all of my options.
ReplyDeleteShutdown, hibernate, sleep.
Kind of funny.