Friday, November 19, 2010

ADM Template to Disable Sleep Buton on Windows 7 Start Menu via Group Policy

To disable the Sleep button onto the Windows 7 Start Menu, a registry key must be generated to the following location: HKLM\Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab

Generate the Dword "ACSettingIndex" and configure the value with the 0


Save the ADM template in file with ADM extension and import it in your GPO on Windows Server 2008:

CLASS MACHINE

CATEGORY !!System
CATEGORY !!PowerManagement
KEYNAME "Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab"

POLICY !!Pol_Disable_Sleep_Button
EXPLAIN !!Explain_Disable_Sleep_Button

VALUENAME "ACSettingIndex"
VALUEON NUMERIC 0
VALUEOFF NUMERIC 1
END POLICY
END CATEGORY;
END CATEGORY;
END CATEGORY;

[Strings]
System="System"
PowerManagement ="Power Management"

;------------------------------------------------------------------------------
; Options
;------------------------------------------------------------------------------
Options="Options"
Pol_Disable_Sleep_Button="Disable Sleep Button on Windows 7 Start Menu"
Explain_Disable_Sleep_Button="Disable Sleep Button on Windows 7 Start Menu"



After applying the GPO to the target computer the Sleep button is grayed out:

1 comment:

  1. END statements don't need semicolons to close
    also there's one too many 'END CATEGORY' (three) as there are only two opens

    fix those lines and the template works without error

    ReplyDelete