ShutdownBlocker is intended to intercept and block restart, shutdown, and logoff commands in a simple fashion.
It can be helpful in the event of a user error from installers that may lack a restart later option after installation saving you from unexpected interruption. It will also effectively block shutdowns originating from applications or users - this includes those annoying ones that accompany Windows updates.
ShutdownBlocker works by registering a ShutdownBlockReasonCreate() reason and objecting to WM_QUERYENDSESSION messages. You can optionally set it to exhaust all calls to shutdown.exe and MusNotification.exe this will block Windows 10 Update restarts but requires running the app as an administrator. It also supports command line usage.