Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has 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
03-04-2011
Default 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

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
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-alt-f4_shut_down_windows_enabled.jpgShut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-alt-f4_shut_down_windows_disabled.jpg
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-start_menu_default.jpgShut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-start_menu_removed.jpg
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-power_button_default.jpgShut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-power_button_removed.jpg
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-ctrl-alt-del_enabled.jpgShut 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

Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 37,304

Tutorial Tools
05-27-2011   #1
Britton30


Windows 7 Ultimate X86 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
05-27-2011   #2
Brink


Windows 7 Ultimate x64 SP1
 
 


My System SpecsSystem Spec
05-28-2011   #3
Britton30


Windows 7 Ultimate X86 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.
Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove-untitled.png

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


05-28-2011   #4
Brink


Windows 7 Ultimate x64 SP1
 
 


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


Windows 7 Ultimate X86 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
05-28-2011   #6
Brink


Windows 7 Ultimate x64 SP1
 
 


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
05-28-2011   #7
Bare Foot Kid


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


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

Last edited by Bare Foot Kid; 05-29-2011 at 05:27 PM..
My System SpecsSystem Spec
05-29-2011   #8
Britton30


Windows 7 Ultimate X86 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
05-29-2011   #9
Bare Foot Kid


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 problems?



Tutorial Tools



Similar Threads for: Shut Down, Restart, Sleep, and Hibernate Commands - Add or Remove
Windows 7 Tutorial Category
Solved BSOD on Shutdown, Restart, Sleep, Hibernate; 0x0000001E Crashes and Debugging
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
Shut Down or Hibernate? General Discussion


All times are GMT -5. The time now is 12:35 AM.



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
  

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