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: 32505
Size:  36.7 KBName:  Alt+F4_Shut_Down_Windows_disabled.jpg
Views: 32371
Size:  29.7 KB
Name:  Start_Menu_Default.jpg
Views: 32477
Size:  74.0 KBName:  Start_Menu_Removed.jpg
Views: 32449
Size:  70.0 KB
Name:  Power_Button_Default.jpg
Views: 32427
Size:  59.6 KBName:  Power_Button_Removed.jpg
Views: 32388
Size:  61.3 KB

-ctrl-alt-del_enabled.jpg

-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)
-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)
-gpedit-2.jpg
7. Close the Local Group Policy Editor window.
That's it,
Shawn







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 10
 
 

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: 31912
Size:  64.0 KB

IT looks like everything is there?
-regedit.png


My System SpecsSystem Spec
.


28 May 2011   #4
Brink
Microsoft MVP

64-bit Windows 10
 
 

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 10
 
 

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: 31887
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
Windows 7 Tutorial Category
Shut down / Sleep / Hibernate ???
Please Someone Expain More Info For This 3 Mode ? Sleep Mode It's Same Shut down But Save Time For Startup Again But Use More Energy ? I'm Desktop PC
General Discussion
BSOD on Shutdown, Restart, Sleep, Hibernate; 0x0000001E
Hello knowledgeable forum people, I am hoping for some help. My computer crashes on shutdown, restart and I suspect hibernate (I think that is what causes them while it sits idle). It was more broken yesterday than it is now, as I have seemingly solved some of the problems. I have included some...
BSOD Help and Support
Shut Down - Suspend - Hibernate - Restart Change
Hi guys. I can't change the effect of my "Shut Down" button. I follow the right instructions and select "Restart" or Hibernate" but it stays "Shut Down". I know how to do it in properties menu of "Start" button, but it don't work. (Right-click and select properties and so on...... I know that...
Customization
BSOD on shut-down, sleep or hibernate - DRIVER_POWER_STATE_FAILURE
Oh boy could I do with some help please! I've tried updating as many drivers as I can but I'm getting nowhere. BSOD every time I shut-down or sleep or hibernate. Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7601.2.1.0.256.1 Locale ID: 2057 Additional information...
BSOD Help and Support
Computer will sleep but not hibernate or shut down
I've been experiencing this problem for about a week now. It started seemingly randomly, as I haven't made any significant changes to my computer. If I try to hibernate or shut down my computer it hangs up on either "Logging off" or "Shutting down" and stays there. I've let it run for as long as an...
General Discussion
Machine Won't Hibernate, Sleep or Shut down
Hello, I had upgraded by laptop computer from windows vista to windows 7 about 3.5 months ago. My computer has been working fine until about 2-3 days ago when it stopped being able to hibernate, sleep or shut down. Whenever I try to sleep or hibernate my computer the screen goes black but the...
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 23:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App