As an administrator, sometimes for many reasons that you need to obligate users cannot either shut down or restart their computer.
We will show you to get the goal. Here the 2 methods.
Edit Using Windows Registry
Open Regedit from start menu
Navigate to: Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Add the new DWORD (32-bit) value as the image below
Restart your Explorer by Sign-out, Log-on again, you will see the function of Shutdown and Restart was disappear.
Edit Using Domain Group Policy Object (GPO)
This applies for Domain environment, apply for a bulk of user.
Open Group Policy Management
Create New Policy named Remove Shutdown/Restart from Start Menu
Remember to place the user wish to apply the Policy under assigned OU.
Edit Policy, go to User Configuration > Preferences > Windows Settings > Registry
Add new Registry Item
Key Path: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name: NoClose
Value type: REG_DWORD
Value data: 1
At the client, do the command gpupdate /force then see the result.
Hope it helps.