I run one windows 10 machine as video and terminal server thats runs 24/7 and it really makes me mad when it just makes windows updates and then just restart without asking.
Windows 10, like previous versions of Microsoft’s operating system, often needs to reboot to action an update, and will occasionally do so at the least appropriate moment.
While Windows 10 updates are mandatory, you can control (to a degree) when they install, and more importantly if and when Windows 10 restarts afterwards.
The first thing to do is to make sure Active Hours are set -- this will stop Windows 10 rebooting at a time when you are likely to be using your computer.
To set this up, go to Start > Settings > Update & Security > Windows Update.
Click on Change active hours, and set the time when you start using your PC, and the time when you finish.
The maximum duration allowed is 12 hours. Click Save.
Another way to control when Windows 10 restarts following an update is through the Control Panel.
Right-click the Start button and select Control Panel. Click System and Security, and then select Schedule tasks under Administrative Tools. Expand Task Scheduler Library on the left, and go to Microsoft > Windows > UpdateOrchestrator.
Select Reboot in the middle pane, and then click Disable under Selected Item.
Hopefully that will stop Windows 10 from rebooting automatically, although the OS will probably re-enable the task at some point.