block shutdown command issued remotely
12,161
Solution 1
shutdown -a
Will abort a shutdown in progress. It might be an idea to create a shortcut or batch file which can be easily found when the shutdown starts.
Solution 2
An even better way is to change the admin password on your computer.
Related videos on Youtube
Author by
Admin
Updated on September 17, 2022Comments
-
Admin over 1 year
What started out as initial fun and games between my fellow IT colleagues is now becoming somewhat annoying. Is there a way to block:
shutdown /r /m \\computername
from actually shutting my computer down?
-
pabouk - Ukraine stay strong over 10 yearsThis is a very bad solution. It will run in endless loops and most probably utilize a CPU core close to 100%. I am not sure if
shutdownguard.bat
does not recursively spawn a new process. In such a case you will soon occupy a lot of system resources. It is much better to use a loop. -
PixelArtDragon almost 9 yearsWhat if they add -t 00 and -f?
-
DeerSpotter over 6 years@pabouk can you show how to use a loop?
-
pabouk - Ukraine stay strong over 6 years@DeerSpotter here is how to loop number of iterations: stackoverflow.com/a/19138050/320437 and here is how to insert waiting to avoid full utilization of a CPU: serverfault.com/a/432323/84914 --- If you encounter a particular problem without finding a solution please create a new question on StackExchange.