2
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?
2
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?
4
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.
2
An even better way is to change the admin password on your computer.
0
Create a .bat
file with the following contents.
@echo off
shutdown -a
shutdownguard.bat
and save it as shutdownguard.bat
. Then open it and do your thing like nothing is happening. What iT does is spamming shutdown cancel command on the background. You open it and minimize it.
@pabouk can you show how to use a loop? – DeerSpotter – 2017-09-21T19:23:11.613
1
@DeerSpotter here is how to loop number of iterations: https://stackoverflow.com/a/19138050/320437 and here is how to insert waiting to avoid full utilization of a CPU: https://serverfault.com/a/432323/84914 --- If you encounter a particular problem without finding a solution please create a new question on StackExchange.
– pabouk – 2017-09-22T07:24:55.2872This 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. – pabouk – 2013-11-01T14:09:48.093
1What if they add -t 00 and -f? – PixelArtDragon – 2015-06-09T08:38:15.263