If you have ever used a workstation whereby you login through remote access, you’ll notice that you cannot shut down the machine (even if you are able to boot it remotely).
If you want to shut it down simply run the following command at a command prompt:
%systemroot%system32shutdown.exe -s -t 0