1

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.

Vinayak
  • 10,885
Dziugas
  • 175

1 Answers1

0

If you don't mind having a cmd window open all the time:

@echo off
:nope
shutdown /a
goto :nope

(put in a .bat file).

Or another trick: always have a unsaved word document open with some text in it. windows will ask if you want to force shutdown. click cancel and you can go on

If nothing else helps and you are a administrator on your PC then try this: Disable remote shutdown on windows 8.1

noahp78
  • 41