 |
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 Computer - Allow or Prevent Users and Groups Shut Down Computer - Allow or Prevent Users and Groups How to Allow or Prevent Users and Groups to Shut Down the Computer
Published by Brink
12-05-2010
| Shut Down Computer - Allow or Prevent Users and Groups How to Allow or Prevent Users and Groups to Shut Down the Computer  Information This will show you how to allow or prevent specific users and groups from being able to Shut Down, Restart, Sleep, and Hibernate the computer in Windows 7 and Vista.
You will need to be logged in as administrator to be able to do this tutorial.  Note Default Users and Groups Allowed to Shut Down the Computer NOTE: This security setting determines which users who are logged on locally to the computer can shut down the operating system using the Shut Down command. On a Local Computer or Workstation (ex: home computer): Administrators, Backup Operators, Users On a Server: Administrators, Backup Operators On Domain: Administrators, Backup Operators, Server Operators, Print Operators EXAMPLE: Shut Down Set to be Prevented  OPTION ONE
Through Local Security Policy
1. Open the Local Security Policy window, expand Local Policies in the left pane, and select User Rights Assignment. (see screenshot below) 2. In the right pane of User Rights Assignment, double click on Shut down the system. (see screenshot above) 3. To Prevent Users or Groups to be able to Shut Down the ComputerA) Select (highlight) listed user(s) and/or group(s) that you do not want to be allowed to shut down the computer anymore, then click on the Remove button. (see screenshot below) NOTE: You can press and hold the CTRL key to select more than one listed user and group.
 Tip To Only Prevent Specific Users - To only prevent specific "standard users", you will also need to remove the Users group in addition to step 3A, then only add each standard user account name in step 4 that you want to be able to shut down the computer.
- To only prevent specific "administrators", you will also need to remove the Administrators group in addition to step 3A first, then only add each administrator user account name in step 4 that you want to be able to shut down the computer.
B) Click on Apply. (see screenshot below)
4. To Allow Users or Groups to be able to Shut Down the ComputerA) Click on the Add User or Group button. (see screenshot above)
B) To Change the Location to Search for "Object Types" NOTE: This is only if you wanted to search for object types to allow from a location other than your local computer. If you only want to search from your computer, then skip this step and go to step 4C. - Click on the Locations button. (see screenshot below step 4C)
- Select a location, and click on OK. (see screenshot below)
C) Click on the Advanced button. (see screenshot below) D) Click on the Object Types button. (see screenshot below) E) Check all boxes or the "object types" (ex: Users or Groups) that you want to find and select from in step 4G, and click on OK. (see screenshot below) F) Click on the Find Now button. (see screenshot below) G) In the bottom pane under Search results, select the user account name(s) and/or groups that you want to be allowed to shut down the computer, then click on OK. (see screenshot below) NOTE: You can press and hold the CTRL key to select more than one listed users (user account names) or group.
 Tip To Only Allow Specific Users- To only allow specific "standard users", you will need to remove the Users group in step 3 first, then add each standard user account name that you want to be able to shut down the computer.
- To only allow specific "administrators", you will need to remove the Administrators group in step 3 first, then add each administrator user account name that you want to be able to shut down the computer.
H) Click on OK. (see screenshot below) I) Click on Apply. (see screenshot below)
5. When finished, click on OK. (see screenshots below steps 3B and 4I) 6. Close the Local Security Policy window. (see screenshot below step 1) OPTION TWO
Using a Elevated Command Prompt
NOTE: Be sure to write down changes you make to the user rights assignment so that you will know what you changed later. Please see the NOTE box at the top of the tutorial for the default user rights assignments. 1. If you have not already, click on the Download button below to download the ntrights.exe file originally from within the Windows Server 2003 Resource Kit Tools.
A) Save the ntrights.exe file to your desktop.
B) Right click on the ntrights.exe file, click on Properties, General tab, and click on the Unblock button if available. (see screenshot below) NOTE: If you do not have a Unblock button under the General tab, then the file is already unblocked and you can continue on to step 1C. C) Right click on the ntrights.exe file and click on Move.
D) Open Windows Explorer and navigate to and open the C:\Windows\System32 folder, then Paste the ntrights.exe file to move it here.
E) If prompted, click on Continue and Yes to approve moving the ntrights.exe file into the System32 folder, then close the Windows Explorer window. 2. Open a elevated command prompt (Run as administrator). 3. To Prevent Users or Groups to be able to Shut Down the ComputerA) In the elevated command prompt type in the command below and press enter. (see screenshot below) NOTE: Substitute User or Group in the command below with the actual user account name (ex: Users) or group name within quotes that you want to prevent.ntrights -U "User or Group" -R SeShutdownPrivilege   Tip To Only Prevent Specific Users- To only prevent specific "standard users", you will also need to remove the Users group in addition to step 3A, then only add each standard user account name in step 4A that you want to be able to shut down the computer.
- To only prevent specific "administrators", you will also need to remove the Administrators group in addition to step 3A first, then only add each administrator user account name in step 4A that you want to be able to shut down the computer.
4. To Allow Users or Groups to be able to Shut Down the ComputerA) In the elevated command prompt type in the command below and press enter. (see screenshot below) NOTE: Substitute User or Group in the command below with the actual user account name (ex: Users) or group name within quotes that you want to allow.ntrights -U "User or Group" +R SeShutdownPrivilege   Tip To Only Allow Specific Users- To only allow specific "standard users", you will need to remove the Users group in step 3A first, then add each standard user account name that you want to be able to shut down the computer.
- To only allow specific "administrators", you will need to remove the Administrators group in step 3A first, then add each administrator user account name that you want to be able to shut down the computer.
5. When finished, close the elevated command prompt. That's it,
Shawn |  Published by | | Administrator Join Date: Oct 2008 Location: Texas Posts: 37,304 | |
 Tutorial Tools | | | | | | | | | |
12-10-2010
|
#1 | | Windows 7 Ultimate, Ubuntu 10.04 LTS - the Lucid Lynx |
Great Tutorial Shawn ! I like the Method 2 the most | My System Specs | | System Manufacturer/Model Number Custom Build OS Windows 7 Ultimate, Ubuntu 10.04 LTS - the Lucid Lynx Motherboard Asus A8N-VM Memory 2 GB Graphics Card Nvidia GeForce 6150 Sound Card Sound Blaster Audigy 24-Bit Monitor(s) Displays Samsung SyncMaster 2253LW 21.6" Widescreen LCD Monitor Hard Drives 320 GB - Internal
1 TB WD External |
12-10-2010
|
#2 | | Windows 7 Ultimate x64 SP1 |
Thank you Shyam. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
12-10-2010
|
#3 | | Windows 7 Ultimate x64 SP1 |
Now I'll just have to go in the BIOS and configure the shutdown switch | My System Specs | | System Manufacturer/Model Number Built by me OS Windows 7 Ultimate x64 SP1 CPU Intel Core i7-950 (3.06GHz) OC to 3.8GHz Motherboard Gigabyte GA-X58A-UD5 rev 1, F6 Bios Memory Corsair Dominator -TR3X6G1600C8D (6GB - 3X2GB) Graphics Card AMD Radeon HD6950 2gig (Sapphire) Sound Card X-Fi Titanium Fatality Pro Monitor(s) Displays HP ZR22w 22" LCD Monitor Screen Resolution 1920 x 1080 Keyboard Logitech Wireless Wave Mouse Logitech Performance MX PSU Antec Signature - SG-850 Case Cooler Master HAF X Cooling Noctua NH-C12P SE14 Hard Drives Primary - OCZ Vertex 2 SSD (120GB). Storage - One 1TB WD Caviar Black, One 750 WD Caviar Black. Internet Speed High Speed Cable Other Info Memory Timings - 1600MHz @ 8-8-8-20-1T @ 1.640 volts |
10-13-2011
|
#4 | | |
kinda worked this kinda help but i want to still allow users to lock,restart, log off. i only want to prevent them from shutting down, sleep, and hybernate | My System Specs | | |
10-13-2011
|
#5 | | Windows 7 Ultimate x64 SP1 |
Hello USA, and welcome to Seven Forums.
Yeah, unfortunately "Restart" is part of the shutdown options. I do not know of another option that would disable all of these without it also including "Restart".
A workaround for restart being disabled would be to log off, then manually restart the computer using the restart button on the computer case.
Hope this helps,
Shawn | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
01-01-2012
|
#6 | | Seven Home Premium x64 / Vista Home Premium x86 |
It works!!! Worked just as expected on Seven Home Premium x64. Does the tool in option 2 work in Vista Home Premium x86? How about XP Pro? As always, any help is very appreciated.
Thanks everyone for your posts.
Dusty | My System Specs | | System Manufacturer/Model Number Dell XPS 15 OS Seven Home Premium x64 / Vista Home Premium x86 CPU Intel Core i5 2.53 GHz overclocked to 2.8 GHz Memory 8 GB Graphics Card Intel HD Graphics / nVidia GeForce GT 420M (external) Screen Resolution 1366x768 Hard Drives Seagate Momentus, 500GB, 7400 RPM, SATA 2.0 Internet Speed Never Fast Enough!!! |
01-01-2012
|
#7 | | Windows 7 Ultimate x64 SP1 |
Hello Dusty, and welcome to Seven Forums.
Both options work in Windows 7 and Vista, but I haven't tried option two in XP though. It's not going to hurt anything to try it XP though. It'll either work or not. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
01-01-2012
|
#8 | | Seven Home Premium x64 / Vista Home Premium x86 |
Thanks, will try on XP Pro.
Also, does this prevent shutdown from cmd prompt? I would like to restrict Vista Home Premium x86 but the system only has one user (admin) so the only way to shut down if I do this is a cmd prompt.
Thanks,
Dusty
No, option 2 doesn't work in XP Pro, returns "invalid application" message
Last edited by Brink; 01-01-2012 at 08:28 PM..
Reason: merged
| My System Specs | | System Manufacturer/Model Number Dell XPS 15 OS Seven Home Premium x64 / Vista Home Premium x86 CPU Intel Core i5 2.53 GHz overclocked to 2.8 GHz Memory 8 GB Graphics Card Intel HD Graphics / nVidia GeForce GT 420M (external) Screen Resolution 1366x768 Hard Drives Seagate Momentus, 500GB, 7400 RPM, SATA 2.0 Internet Speed Never Fast Enough!!! |
01-01-2012
|
#9 | | Windows 7 Ultimate x64 SP1 |
Dusty,
When they (tested with standard user) run the shutdown /f command in a command prompt, it will only log them out instead. The other switch options get a access denied message. So, yep it basically still prevents them in a command prompt as well.
Thank you for confirming that it doesn't work in XP. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 Shut Down Computer - Allow or Prevent Users and Groups problems? All times are GMT -5. The time now is 12:27 AM. |  |