If a shutdown of your system has been initiated remotely you will see a dialog similar to this:
To kill this dialog and cancel the shutdown, open up a command prompt window as administrator. Then issue the following command:
The "a" stands for abort. You can also use the shutdown command to initiate your own shutdown of remote systems. You can send messages and manipulate many different aspects of the windows shutdown procedure with this command and its parameters.