Windows does not restart for updates during the hours you set as "active hours". Set active hours yourself to the time you use the computer and turn on notifications before a restart, and it will almost never shut down in the middle of your work.

Buttons, not commands. PC Buster finds what opens ad pop-ups, clears junk and points to what is broken. Checks and cleanup are free.
Free downloadThere are many methods and programs around that switch off the update service, but they cut off security patches and later cause updates to keep failing (error 0x80070422). Do not turn it off; just adjust the hours. If updates already keep failing and the restarts keep repeating, see fixing Windows Update errors step by step.
PC Buster has no button for this setting. It takes a minute in the settings screens above. When updates fail and "restart required" keeps coming back, PC Buster's Windows Update Repair first reads pending restarts, paused updates and disabled services and tells you the cause (diagnosis free, "Fix" button paid).
Windows Update fails or keeps spinningWindows activation errorTurn off Start menu ads and recommendationsOld right-click menuWindows search not workingTaskbar not workingMake Chrome the default browserPC clock keeps going wrongSchedule a shutdownStart in Safe ModeHow to reset WindowsSee all fixes