It’s not always that you have the option of restarting Windows from the start menu. When you connect with Remote Desktop connection all you’re presented with is an Log off, Disconnect and Lock option.
But you can still restart the computer by using the command prompt. Just type
to send a restart signal to the computer or type
to shut-down the computer. There is a default delay of 30 seconds to give you some time to change your mind. If you do change your mind you can abort the restart by typing
You can also add the /t parameter to specify shut-down time in seconds and the /c parameter to specify a text to be displayed for all users currently logged on.
This command works for all Windows versions including servers.