Whenever you feel the need to restart or shut down your computer from a remote location, try these tools to see if they work. Use Remote Desktop Connection Restart using Windows PowerShell Restart ...
Exit Registry Editor and restart your computer. Once you have completed this procedure, the Remote Desktop option should be greyed out, and an issue should be resolved on your Windows computer.