Disable ‘Sleep’ From the Windows Shutdown Button

KB ID 0000851 

Problem

You want to stop your users being able to select the ‘Sleep’ option from the Windows 7 power button via group policy.

Solution

1. On a domain controller Windows Key+R> gpmc.msc {enter} > The Group Policy Management Console will open.

2. Navigate to where you want to create your policy, or edit an existing one,

Note: This is a computer policy, make sure the policy is linked to an OU that contains computers NOT users.

3. Navigate to;

[box]

Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings

[/box]

4. Locate the “Enable “Turn Off Hybrid Sleep” and set to Enable.

5. Locate the “Allow Standby States (S1-S3) when sleeping” and set to Disable,.

Note: There’s also an ‘on battery’ policy if you have mobile clients.

6. Then either reboot the clients, wait a couple of hours, or manually run “gpupdate /force” on them.

Note: With Server 2012 you can force all computers in an OU to refresh group policy.

Related Articles, References, Credits, or External Links

NA

Disable ‘Lock’ From the Windows Shutdown Button

KB ID 0000851 

Problem

You want to stop your users being able to select the ‘Lock’ option from the Windows 7 power button via group policy.

Solution

1. On a domain controller Windows Key+R> gpmc.msc {enter} > The Group Policy Management Console will open.

2. Navigate to where you want to create your policy, or edit an existing one.

Note: This is a computer policy, make sure the policy is linked to an OU that contains computers NOT users.

3. Navigate to;

[box]

Computer Configuration > Preferences > Windows Settings > Registry

[/box]

4. Right Click > New> Registry Item.

5. Set the following;

Action = Create.
Hive = HKEY_LOCAL_MACHINE
Key Path = SOFTWAREMicrosoftWindowsCutrrentVersionPoliciesSystem
Value name = DisableLockWorkstation
Value type = REG_DWORD
Value data = 1

 

6. Apply > OK > Close the policy editor.

7. Then either reboot the clients, wait a couple of hours, or manually run “gpupdate /force” on them.

Note: With Server 2012 you can force all computers in an OU to refresh group policy.

Related Articles, References, Credits, or External Links

NA