Last updated
Was this helpful?
Last updated
Was this helpful?
To disable the Shutdown and Restart options in Windows Server using Group Policy (GPO), follow these steps:
Open Group Policy Management
Press Win + R
, type gpedit.msc
, and press Enter.
(If you're using a domain environment, open gpmc.msc
instead.)
Navigate to the Policy Location
Go to:
Enable the Policy to Remove Shutdown and Restart
Find "Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands".
Double-click it, select Enabled, then click OK.
Apply and Enforce the Policy
Run the following command in Command Prompt or PowerShell to apply changes:
If managing via Active Directory, apply the same setting through Group Policy Management (gpmc.msc
) by editing the appropriate GPO linked to user groups or organizational units (OUs).
The Shutdown, Restart, Sleep, and Hibernate options will be removed from the Start Menu, Ctrl+Alt+Del screen, and Alt+F4 shutdown dialog.
Users will no longer be able to shut down or restart the server via the GUI.
If you want to prevent shutdown via the command line as well:
Open Local Security Policy (secpol.msc
).
Navigate to:
Find "Shutdown the system" and remove all non-admin users.
This ensures only administrators can shut down the system.