How to Allow or Prevent Users and Groups to Hibernate, Restart, Shut Down, and Sleep the PC
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
Vista,
Windows 7, and
Windows 8.
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 Computer
A) 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 Computer
A) 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)
7. Sometimes you may need to log off and on, or restart the computer to apply.
OPTION TWO
Using "ntrights.exe" and an 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/tap on the
Download button below to download the
ntrights.zip file originally from within the
Windows Server 2003 Resource Kit Tools.
Download
A) Save the
ntrights.zip file to your desktop.
B)
Unblock the
ntrights.zip file.
C) Open the
ntrights.zip file, and extract (drag and drop) the
ntrights.exe file to your desktop.
D) Right click on the
ntrights.exe file, and click on
Move.
E) Open Windows Explorer and navigate to and open the
C:\Windows\System32 folder, then
Paste the
ntrights.exe file to move it here.
F) If prompted, click/tap on
Continue and
Yes to approve moving the
ntrights.exe file into the
System32 folder, then close the Windows Explorer window.
2. Open an
elevated command prompt (Run as administrator).
3. To Prevent Users or Groups to be able to Shut Down the Computer
A) 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 Computer
A) 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.
6. Sometimes you may need to log off and on, or restart the computer to apply.
That's it,
Shawn