Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted
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.

share|improve this answer
What if they add -t 00 and -f? – Garan Jun 9 '15 at 8:38

Check this one at Administrative tools in Control panel.

Here is the whole article.

share|improve this answer
thanks for that. have accepted the other one as modifying local policy will get changed by the domain policy I believe. Still after a few blocked attempts I hope my colleagues will soon view me as invincible :) – Tim Alexander Aug 19 '10 at 14:48
Oh I thought shutdown -a is not a good solution for you. Well..whatever. :) – Shiki Aug 20 '10 at 7:32
MUCH BETTER IDEA - Linked article gives Registry key which (untested) is probably what the Local Security/Domain policy is setting. If Domain policy is not set to explicit value, the registry setting should remain through policy updates. Much more effective than any shutdown -a / catching solutions, as (I believe) Windows' just doesn't entertain requests to initiate a shutdown in the first place. – user66001 Mar 28 at 23:13

An even better way is to change the admin password on your computer.

share|improve this answer

Create a .bat file with the following contents.

@echo off                   
shutdown -a 


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.

share|improve this answer
This 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 Nov 1 '13 at 14:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .