Zend certified PHP/Magento developer

Prevent Windows 10 Restart, Shutdown or Hibernate while backup process active

Is there any way I can prevent all Windows users from accidentally shutting down a Windows 10 Pro machine by going to Win-Start Menu -> e.g. Restart, Shutdown or Hibernate and clicking on it while a process called backupprocess.exe is running?

I want to avoid corrupting a backup container that is being written to.

I’ve tried the following

Open the registry editor and navigate to the following key

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer

Change the value of NoClose to 1. If NoClose does not exist, create the DWORD value and set it to 1.

Restart Explorer to see the changes.

But that is the problem.

How can I automate this without having to restart Explorer to see the changes? Even if I could automate to write to the registry, it’s a bad user experience if Win-Explorer loses all open windows at that moment.

How can I solve this?