Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove



Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove

How to Add or Remove the Shut Down, Restart, Sleep, and Hibernate Commands in Windows 7
Published by Brink
04 Mar 2011
Published by

How to Add or Remove the Shut Down, Restart, Sleep, and Hibernate Commands in Windows 7

information   Information
This will show you how to add or remove the Shut Down, Restart, Sleep, and Hibernate commands from the Start Menu, Start Menu power button, CTRL+ALT+DEL screen, and Alt+F4 Shut Down Windows dialog for all users in Windows 7.

You must be logged in as an administrator to be able to do this tutorial.

Note   Note
This does not prevent users from being able to use any other method (ex: shortcuts) to Shut Down, Restart, Sleep, and Hibernate the computer. It only removes them from the Start Menu, Start Menu power button, CTRL+ALT+DEL screen, and Alt+F4 Shut Down Windows dialog locations.

EXAMPLE: Shut Down, Restart, Sleep, and Hibernate commands Added and Removed
Name:  Alt+F4_Shut_Down_Windows_Enabled.jpg
Views: 14425
Size:  36.7 KBName:  Alt+F4_Shut_Down_Windows_disabled.jpg
Views: 14378
Size:  29.7 KB
Name:  Start_Menu_Default.jpg
Views: 14394
Size:  74.0 KBName:  Start_Menu_Removed.jpg
Views: 14414
Size:  70.0 KB
Name:  Power_Button_Default.jpg
Views: 14440
Size:  59.6 KBName:  Power_Button_Removed.jpg
Views: 14414
Size:  61.3 KB

Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-ctrl-alt-del_enabled.jpg

Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-ctrl-alt-del_removed.jpg




OPTION ONE
Using a REG File Download
1. To Add Shut Down, Restart, Sleep, and Hibernate Commands
NOTE: This is the default setting.
A) Click on the Download button below to download the file below.
Add_Shut-Down_Restart_Sleep_Hibernation.reg

download
B) Go to step 3.
2. To Remove Shut Down, Restart, Sleep, and Hibernate Commands
A) Click on the Download button below to download the file below.
Remove_Shut-Down_Restart_Sleep_Hibernation.reg

download
3. Click on Save, and save the .reg file to the desktop.

4. Right click on the downloaded .reg file and click on Merge.

5. Click on Run, Yes, Yes, and OK when prompted.

6. Restart the computer to apply.

7. When done, you can delete the downloaded .reg file if you like.



OPTION TWO
Through the Local Group Policy Editor
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.

2. In the left pane, click on to expand User Configuration, Administrative Templates, and Start Menu and Taskbar. (see screenshot below)
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-gpedit-1.jpg
3. In the right pane, double click on Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands. (see screenshot above)

4. To Add Shut Down, Restart, Sleep, and Hibernate Commands
A) Select (dot) either Not Configured or Disabled. (see screenshot below step 6)
NOTE: Not Configured is the default setting.

B) Go to step 6.
5. To Remove Shut Down, Restart, Sleep, and Hibernate Commands
A) Select (dot) Enabled. (see screenshot below step 6)
6. Click on OK. (see screenshot below)
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-gpedit-2.jpg
7. Close the Local Group Policy Editor window.
That's it,
Shawn







Related Tutorials

.

27 May 2011   #1
Britton30
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

Hi Shawn, do you have one to remove only Lock, Switch user, and Sleep? I want to keep Restart and Shut Down and I already have Hibernate disabled with powercfg -h off command.

My System SpecsSystem Spec
.

27 May 2011   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

My System SpecsSystem Spec
28 May 2011   #3
Britton30
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

Thanks Shawn, the tut for removing Switch User and Lock worked, the one for removing sleep did not. The Switch User and Lock are grayed out in the restart button and do not show as an option in Properties.
Name:  Untitled.png
Views: 14117
Size:  64.0 KB

IT looks like everything is there?
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-regedit.png


My System SpecsSystem Spec
28 May 2011   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Did you already restart the computer to see if it may apply afterwards?
My System SpecsSystem Spec
28 May 2011   #5
Britton30
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

Yes I did restart and went so far as to delete all my entries and redo the whole process, no luck yet.
My System SpecsSystem Spec
28 May 2011   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

I just tested it again on my system, and that disable Sleep in Start Menu tutorial is not working for me now either. It use to when it was first posted. It may be one of those things that SP1 now prevents from working somehow. I sent Ted a PM to see if it's still working for him or not.
My System SpecsSystem Spec
28 May 2011   #7
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Hello guys.


I have it currently disabled in 64-bit Ultimate SP1 without issue, as a matter of fact I just reinstalled less than 2 weeks ago and had no issue using the method outlined in the tutorial to disable it then.

Sleep : Disable in Shut Down Menu


Name:  sleep.jpg
Views: 14105
Size:  72.2 KB


My System SpecsSystem Spec
29 May 2011   #8
Britton30
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

Thanks Shawn.
Ted, if you look at my snips, is everything correct? I copy/pasted the info supplied it the tutorial.
My System SpecsSystem Spec
29 May 2011   #9
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Quote   Quote: Originally Posted by Britton30 View Post
Thanks Shawn.
Ted, if you look at my snips, is everything correct? I copy/pasted the info supplied it the tutorial.

Hello.


I looked at them earlier and all seems well, I have no idea what the issue may be.
My System SpecsSystem Spec
Comment

 Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove




Tutorial Tools



Similar help and support threads for2: Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove
Windows 7 Tutorial Category
Shut down / Sleep / Hibernate ??? General Discussion
Solved BSOD on Shutdown, Restart, Sleep, Hibernate; 0x0000001E BSOD Help and Support
Shut Down - Suspend - Hibernate - Restart Change Customization
Solved BSOD on shut-down, sleep or hibernate - DRIVER_POWER_STATE_FAILURE BSOD Help and Support
Remove Shut Down from Start Menu but keep Restart General Discussion
Computer will sleep but not hibernate or shut down General Discussion
Machine Won't Hibernate, Sleep or Shut down Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:54 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33