You leave a render running overnight, or a long download, or a document you didn't save. In the morning the PC is sitting at the login screen with a cheerful "Hi" and everything is gone. Windows Update decided it was a good time.
The tempting response is to disable updates completely with some registry hack or third-party tool. I'd advise against that. Security updates fix holes that are actively exploited, and a PC that skips them for months is a much bigger risk than an annoying restart. The better approach is to tell Windows when it's allowed to restart, and make sure it asks first.
Set your active hours
Go to Settings → Windows Update → Advanced options → Active hours. During active hours, Windows won't restart automatically to finish an update. You can let Windows adjust them based on when you use the PC, or set them yourself. The window can be up to 18 hours long, so something like 08:00 to 02:00 covers most people's day and evening.
Active hours only protect you during that window, though. If your overnight job runs outside it, Windows may still restart. That's what the next settings are for.
Get notified before a restart
In the same Advanced options page, turn on Notify me when a restart is required to finish updating. Windows will show a notification ahead of time instead of quietly scheduling one.
When an update is waiting, the Windows Update page also offers Schedule the restart, where you pick an exact time. If you know you're leaving the PC on for a job tonight, schedule the restart for tomorrow lunchtime and it'll wait.
Pause updates for a few weeks
At the top of the Windows Update page there's a Pause updates option, from one to five weeks on Home and Pro editions. While paused, nothing installs and nothing restarts. It's the right tool before a deadline, a trip or a livestream. Once the pause ends, Windows installs the pending updates before you can pause again, which is a reasonable compromise: you choose when, not whether.
Use the "Get the latest updates" toggle wisely
The toggle labelled Get the latest updates as soon as they're available opts you into non-security feature changes early. If you value stability over new features, leave it off. You'll still get security fixes on the normal schedule, and the new features arrive a bit later after other people have found the bugs.
Metered connections
If you set a Wi-Fi or Ethernet connection as metered (Settings → Network & internet, open the connection, turn on Metered connection), Windows downloads only some updates automatically on that connection. It's meant for mobile hotspots and capped data plans, and it's genuinely useful there. Using it on your home connection just to dodge updates works for a while but also affects other apps, and Windows still downloads security updates it considers critical.
Drivers
Windows Update also installs drivers, and occasionally a generic driver replaces the one from your GPU or laptop manufacturer. If that happens, reinstall the manufacturer's driver. Under Advanced options → Optional updates you'll see driver updates Windows has found but not installed; there's no need to install those unless something isn't working.
Protecting long jobs
For renders, backups, large downloads and anything that runs for hours, a few habits help:
- Before starting, open Windows Update. If it says a restart is pending, restart now, then start your job on a fresh boot.
- Pause updates for a week if the job spans several days.
- Use apps that save progress or support resuming. Most download managers and renderers can do this.
- Save your work. Office apps with AutoSave and editors with auto-recovery handle unexpected restarts much better.
When an update causes problems
Occasionally an update breaks something: a printer stops working, a game crashes on launch, Wi-Fi drops. Before searching forums, check what actually changed. Settings → Windows Update → Update history lists every update with its KB number and install date. If the problem started the same day, search for that KB number plus the symptom; you'll quickly see whether other people hit the same thing.
From the same page, Uninstall updates lets you remove a recent cumulative update. Treat that as temporary, because it also removes the security fixes in it. Microsoft usually ships a fix within a few weeks, and you can pause updates in the meantime so the broken one doesn't reinstall immediately. For driver problems, Device Manager's Roll Back Driver button (in the device's Properties, Driver tab) is the quicker fix.
Why the restart is needed at all
Windows can't replace files that are in use, and core parts of the system are always in use while it's running. So updates are staged while you work and swapped in during the restart. That's also why the "Working on updates" screen sometimes takes a while: it's finishing the work it couldn't do with the system running.
Monthly security updates usually come out on the second Tuesday of each month (Microsoft calls it "Patch Tuesday"), so if surprise restarts tend to happen to you around the middle of the month, that's why. Knowing the rhythm helps: check for updates yourself on that Wednesday, install them at a time that suits you, and you'll rarely be caught out.
One last thing: always use Restart rather than Shut down to finish updates. With Fast Startup on, Shut down saves part of the system state instead of fully closing it, and some updates only complete on a real restart.