When using remote clients to manage other machines, in order to facilitate a remote shutdown or restart operation, but there is a "denial of access" phenomenon, verified by default only users of the Administrators group can be authorized to shut down or restart the computer from the remote, and it is in the LAN environment, access to other machines only guest permissions, Of course, we can give the Guest user permission to remote shutdown.
Click the Start menu, open Window click Control Panel Options
In Control Panel, double-click Administrative Tools, open the window and double-click Local Security policy
In the left window, double-click Local policy, more items appear, click User Rights Assignment
In the right pane, locate and double-click to open the Force shutdown from remote system project
Go to the Properties interface, click the Add Users and Groups button on the Local Security Settings tab
Pop the Select Users and Groups dialog box, click the Advanced button, click the Find Now button, locate and select Guest, and click OK
You can see that you have added a Guest user from the remote system Force shutdown property
To turn off the computer remotely, use the "shutdown-s–m sunbird-t 30" command on the remote machine, and to remotely restart the computer, use the "shutdown-r-t-0" command on the remote side of the machine