Automatic restarts after an update will occur outside of the active hours. By default, active hours are from 8 AM to 5 PM on PCs and from 5 AM to 11 PM on phones. Users can change the active hours manually.
How do I stop Windows from automatically restarting for updates?
Navigate to Computer Configuration > Administrative Templates > Windows Component > Windows Update. Double-click No auto-restart with automatic installations of scheduled updates” Select the Enabled option and click “OK.”
How do I know if Windows Update is restarting?
Select Start > Settings > Update & Security > Windows Update . Select Schedule the restart and choose a time that’s convenient for you. Note: You can set active hours to make sure your device only restarts for updates when you’re not using your PC.