Disable Shut Down

Does anyone know if there is a script to disable Shut Down of a Windows PC that I can run against customers machines?

@scot, you should be able to run shutdown -a from cmd which will abort a shutdown

shutdown -a

Bear in mind that this will only work if a shutdown has been triggered. If a shutdown has not been initiated on the computer the abort command will have no impact.

There’s a registry key shown in this article that could be set with a script.

I haven’t tried it, but it looks simple enough.

Thanks @jeremy - I was aware of the registry changes etc., just wondering if anyone has/had done a script that can be used in Syncro so I can deploy.

Sorry, scripting is not my strong point.