I'm looking for a group policy setting or a third-party program that can prevent Windows 10 (and earlier) from a logoff, restart, or shutdown command, initiated by either the user or the system.
I didn't have as many issues with this in Windows 7, however Windows 10 has automatically restarted my computer several times from updates in the middle of me working on something. I know other users have complained about this over the past several months as well. I have also accidentally logged off of my computer once or twice before while I have programs and files open, and it doesn't prompt to close programs or anything of that nature.
I would like to be able to totally prevent the system from logging off, restarting, or shutting down unless I manually close all of my open programs and files first. Does anyone know of a way to do this?
As a note, I've already set the local policy item under Computer Configuration > Administrative Templates > System > Shutdown Options for "Turn off automatic termination of applications that block or cancel shutdown" to "Enabled".
I've seen this question: Is there some way to prevent any and all restarts? Not just from Windows Update?
Unlike that question, I'm asking for a group policy setting (that I haven't already set) or a third-party program that will prevent Windows 10 (and earlier) from not only being shutdown or restarted, but also prevents a log off command. The question linked refers to no program or group policy that will suffice as an answer to my question.