Windows has a local security policy for disabling the ability to shut down a computer, but this also blocks the ability to restart the machine.
Is there a way to block only shutdown without blocking restart?
Windows has a local security policy for disabling the ability to shut down a computer, but this also blocks the ability to restart the machine.
Is there a way to block only shutdown without blocking restart?
The Windows security model doesn't differentiate between "Shutdown" and "Restart". In terms of user rights assignments they're the same thing.
I've had some similar scenarios with task-oriented computers where I'd sometimes need the user to be able to restart the computer (but not shutdown). (I can't say I've ever been happy with these situations but we have to do what we have to do.)
I've done as follows:
Hide the user interface for "Shutdown" and "Restart" (using the "Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands" Group Policy setting)
Create a desktop shortcut to run shutdown -r -t 1 -f
This isn't at all an ideal situation, but it seems to have worked reasonably well in the few times I've needed to do it.