In my college, we use Microsoft Server 2008, and each student has their own account.
In my class, students discovered that they can remotely shut down each other's PCs using cmd (the fact that we have sufficient permission to do this is an issue for another day).
To prevent this inconvenience, I wrote a batch file with the following command:
shutdown /a
and now I'm trying to schedule it for the shutdown event with no success. So my question is: Is there a way to make this batch file run any time somebody attempts to shut down my PC remotely?
If this is impossible, then I'll have to write a Java program that continuously checks if shutdown.exe is running and if it is, aborts it.