Here's my favorite way to shut down a Windows Server 2012 or Windows 8 system through Remote Desktop:
- Go to the Desktop.
- Click on the desktop background (to make sure you don't have any window in focus).
- Hit the Alt-F4 keyboard shortcut. This brings up a simple dialog box (below):
You can choose Disconnect, Sign out, Shut down, or Restart.