There is another trick:
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.
2. In the left pane, click on to expand User Configuration, Administrative Templates, and Start Menu and Taskbar.
3. In the right pane, double click on Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands.
4. Select (dot) either Not Configured or Disabled.
5. Close the Local Group Policy Editor window.