Sets NoAutoRebootWithLoggedOnUsers = 1 under Policies\Microsoft\Windows\WindowsUpdate\AU. Stops Windows Update from forcibly restarting the PC to finish installing updates while a user is logged on — the behaviour behind 'I left for five minutes and Windows rebooted and closed everything'. Updates still download and install; they just wait for YOU to choose the restart. Does not disable updates. Reversible.
MaxTweaks applies this tweak with one click and snapshots your original setting first, so you can revert it cleanly at any time. A System Restore point is offered before batch changes, and every tweak links to its official source.
Get MaxTweaksOfficial documentation: https://learn.microsoft.com/en-us/windows/deployment/update/waas-restart