I noticed that the setting in the Control Panel of Windows 7 is similar to that of Windows XP. This setting deactivates the Automatic Restart of the Operating System if any action causes an error in the system.
In the case of Windows 10, I would not know how to configure it as I did downgrade to Windows 7. Windows 10 has some things that I do not like despite some superior features (better Windows Update, etc.).