There may be times that you would like to prevent other standard users from shutting down or restarting the Windows computer.

Prevent access to shutdown, restart, sleep, hibernate commands

To do so, type mmc in start search and hit Enter to open the Microsoft Management Console. In the File tab, click on Add/Remove Snap-in.

In the left side, under the available Snap-in’s, select Group Policy Object and double-click on it.

This will open the Group Policy Wizard. Under the Local Computer Group Policy Object, click Browse.

Under the Users tab, select Non Administrators and click OK.

Next, under the newly created Local Computer \ Non-Administrators policy object in the left pane, navigate to User Configuration > Administrative Templates > Start Menu and Taskbar.

In the right pane select Remove and prevent access to the shutdown, restart, sleep, and hibernate commands and double-click on it. Select Enable > Apply/OK.

This policy setting prevents users from performing the following commands from the Start menu or Windows Security screen: Shut Down, Restart, Sleep, and Hibernate. This policy setting does not prevent users from running Windows-based programs that perform these functions.

If you enable this policy setting, the Power button and the Shut Down, Restart, Sleep, and Hibernate commands are removed from the Start menu. The Power button is also removed from the Windows Security screen, which appears when you press CTRL+ALT+DELETE.

Prevent specific users from shutting down Windows

You can also prevent specific users from being able to shut down the computer. To do so, open gpedit.msc and navigate to the following:

Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment > Shut Down the System.

Double click on it > Select Users > Press Remove > Apply/OK.

This Security Setting Determines Which Users Who Are Logged On Locally To The Computer Can Or Cannot Shut Down The Operating System Using The Shut Down Command.

To disallow only specific users, you will have to add the standard user account name you want to be unable to shutdown or restart the computer.