Windows Server patching: updates, rings and safe restarts

Most successful attacks go through holes that already had a fix sitting there. Windows Server patching is the monthly routine that closes those holes without taking the business down, and it’s one of the jobs people will judge you on the most.

Here you’ll read a server’s build and update history, search for updates and install them, set up Windows Update through a GPO, patch your two DCs one after the other and take a look at WSUS, Azure Update Manager and hotpatching. In Break It you’ll fix an update service that won’t start and a “patched” server that isn’t.

TimeYou needBy the end you can
About 75 minutes, plus update downloadsDC01, DC02 and SRV01 with internet access through LabNetRead builds and update history, install updates with sconfig and PowerShell, configure update policy by GPO, patch DCs safely and fix common update problems

What it is, in one line

Windows Server patching is installing Microsoft’s monthly security and quality updates on your servers, in a planned order, with a restart and a check afterwards.

In Simple Words

Servicing the company vans

A delivery company gets its vans serviced every month, but it never sends the whole fleet to the garage on the same day, or nobody could deliver anything. Two vans go first, and if they come back fine the rest follow. A van also isn’t “serviced” just because there’s a booking in the diary; it has to go through the garage and drive out again. Servers work the same way: patch them in groups, never both DCs together, and don’t call an update done until the server has restarted and you’ve checked it works.

Engineer's View

Cumulative updates, channels and tools

Monthly cycle: Microsoft releases security updates on Patch Tuesday, the second Tuesday of each month. Each cumulative update (LCU) carries every earlier fix for that version, so a server that’s one update behind needs only the latest one, and the servicing stack update comes bundled in. When something urgent can’t wait for the next cycle, Microsoft ships an out-of-band update.

Build numbers: Server 2025 is build 26100; the number after the dot (the UBR) goes up with each cumulative update, so 26100.xxxx tells you exactly how patched a server is.

Tools: for small sites, Windows Update driven by Group Policy settings is enough. WSUS lets you approve updates centrally; Microsoft deprecated it in 2024, but it still ships and works in Server 2025. Azure Update Manager (with Azure Arc for on-premises servers) schedules updates and reports on them from Azure. Hotpatching on Server 2025 with Arc is a paid subscription that installs most monthly security updates without a restart, although the quarterly baseline updates still need one.

Order: test servers go first, then one DC, then a replication check, then the other DC, and after that the member servers by role. Always know your way back, whether that’s a snapshot, a backup or wusa /uninstall for a single KB.

How it works, step by step

This is what a patch cycle that doesn’t take the business down looks like:

Windows Server patching cycle: Patch Tuesday, test ring, first of each pair, health check, the rest

With rings, a bad update lands on a few test servers first instead of on the domain controllers. A week between rings is common, though an urgent security fix may get a shorter cycle.

Here’s how the lab servers will be updated:

Windows Server patching tools: Windows Update with GPO, WSUS, Azure Update Manager and hotpatching
  1. Read the build and update history on SRV01.
  2. Search for missing updates with the Windows Update API, and install them with sconfig.
  3. C-Server-Updates: a GPO that downloads updates and waits for you to install them.
  4. DCs one at a time: DC02 first, check replication, then DC01.
  5. Check for pending restarts with a small function you’ll reuse.

Hands-on Lab: Windows Server patching for SRV01 and the DCs

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Start DC01, DC02 and SRV01 and take snapshots called “Before patching” before you change anything. Work in PowerShell as administrator.

1Read the build and recent updates

On SRV01, run this:

$cv = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
"Build: $($cv.CurrentBuild).$($cv.UBR)"
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 3 HotFixID, Description, InstalledOn

You should see something like this:

Build: 26100.NNNN

HotFixID  Description     InstalledOn
--------  -----------     -----------
KB50xxxxx Security Update 14/10/2026 00:00:00
KB50yyyyy Update          14/10/2026 00:00:00

NNNN and the KB numbers will depend on the month. Look up the UBR on Microsoft’s Windows Server release information page to see which month’s update the server has. Get-HotFix shows only some update types, so the build number is the more reliable answer when someone asks “how patched is this server?”

✅ Checkpoint: You know SRV01’s full build (26100.something) and its most recent updates.

2Search for missing updates

On SRV01, ask the Windows Update Agent directly (it’s built in, so you don’t need any modules):

$searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=0 and IsHidden=0")
$result.Updates | Select-Object Title, @{n='SizeMB';e={[math]::Round($_.MaxDownloadSize/1MB)}}, IsDownloaded

You should see something like this:

Title                                                                              SizeMB IsDownloaded
-----                                                                              ------ ------------
2026-10 Cumulative Update for Microsoft server operating system version 24H2 for x64-based Systems (KB...)  ...        False
Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version ...)                    ...         True

Settings, sconfig and most other tools run this same search. If it fails with an error code, you’ve found a Windows Update problem that needs fixing before anything else, and Break It covers one of them.

✅ Checkpoint: The search returns a list (possibly including a cumulative update) without errors.

3Install updates with sconfig

On SRV01, run sconfig, choose 6 (Install updates) and then 1 for all quality updates. Pick A to install all of them, and when it asks about restarting, say No for now, because in Break It you’ll look at what “installed but not restarted” looks like.

Then read the update events from the PowerShell window:

Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-WindowsUpdateClient'; Id=19,20} -MaxEvents 5 |
    Select-Object TimeCreated, Id, Message | Format-List

You should see something like this:

TimeCreated : 19/10/2026 20:21:44
Id          : 19
Message     : Installation Successful: Windows successfully installed the following update: 2026-10 Cumulative Update for
              Microsoft server operating system version 24H2 for x64-based Systems (KB...)

Event 19 means an install succeeded and event 20 means it failed, with an error code. When someone asks “was this server patched last month?”, these events are your record.

✅ Checkpoint: Event 19 shows the cumulative update installed (restart still pending).

4Set update behaviour for servers with a GPO

On DC01, create the GPO and link it to Servers:

New-GPO -Name 'C-Server-Updates' | New-GPLink -Target 'OU=Servers,OU=SAATLAB,DC=saatlab,DC=internal' | Out-Null
$k = 'HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Set-GPRegistryValue -Name 'C-Server-Updates' -Key $k -ValueName NoAutoUpdate -Type DWord -Value 0 | Out-Null
Set-GPRegistryValue -Name 'C-Server-Updates' -Key $k -ValueName AUOptions -Type DWord -Value 3 | Out-Null
Set-GPRegistryValue -Name 'C-Server-Updates' -Key $k -ValueName NoAutoRebootWithLoggedOnUsers -Type DWord -Value 1 | Out-Null

These are the settings behind Computer Configuration, Administrative Templates, Windows Components, Windows Update, Configure Automatic Updates. AUOptions 3 means “download and notify for install”, so servers fetch updates in the background and you decide when to install and restart. Workstations usually get option 4 (install on a schedule) instead.

On SRV01, apply and check:

gpupdate /force
Get-ItemProperty 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU' | Select-Object NoAutoUpdate, AUOptions

You should see this:

NoAutoUpdate AUOptions
------------ ---------
           0         3

✅ Checkpoint: SRV01 has AUOptions 3 from C-Server-Updates.

5Write a pending-restart check

On SRV01, define the function and run it:

function Test-PendingReboot {
    $keys = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending',
            'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
    $file = (Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager' -Name PendingFileRenameOperations -ErrorAction SilentlyContinue) -ne $null
    [pscustomobject]@{ Computer = $env:COMPUTERNAME; CBS = (Test-Path $keys[0]); WU = (Test-Path $keys[1]); FileRename = $file }
}
Test-PendingReboot

You should see something like this:

Computer CBS  WU   FileRename
-------- ---  --   ----------
SRV01    True True True

Any True means SRV01 needs a restart to finish the install. Restart it now with Restart-Computer, sign back in and run the build check from step 1 again; the UBR should be higher, and Test-PendingReboot should show False everywhere.

✅ Checkpoint: After the restart, the UBR has increased and Test-PendingReboot returns False for all three checks.

Windows Server patching lab: pending restart before and after Restart-Computer
Before the restart every check is True, and after it SRV01 is properly patched.

6Patch the DCs one at a time

From SRV01 or DC01, install updates on DC02 first (sconfig option 6 on DC02, or the same steps remotely), then restart it and wait:

Restart-Computer -ComputerName DC02 -Wait -For PowerShell -Timeout 900 -Force
repadmin /replsummary
Get-ADDomainController -Filter * | Select-Object Name, OperatingSystemVersion

You should see something like this:

Source DSA          largest delta    fails/total %%   error
 DC01                      03m:10s    0 /   5    0
 DC02                      02m:41s    0 /   5    0
...

Name OperatingSystemVersion
---- ----------------------
DC01 10.0 (26100)
DC02 10.0 (26100)

Patch DC01 the same way only once DC02 is back and replicating with no failures. While one DC is restarting, the other handles every sign-in and DNS query, which is the second DC from Lesson 13 earning its keep.

✅ Checkpoint: DC02 restarted and replsummary shows 0 failures before you patch DC01.

Break It, Then Fix It

Here are two update problems you’ll run into often: a search that fails straight away, and a server that looks “patched” but isn’t.

1Break it: the Windows Update service is disabled

On SRV01, disable the service (some “optimisation” scripts do exactly this):

Stop-Service wuauserv -Force
Set-Service wuauserv -StartupType Disabled
$searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()
$searcher.Search("IsInstalled=0 and IsHidden=0")

You’ll get an error like this:

Exception calling "Search" with "1" argument(s): "Exception from HRESULT: 0x80070422"
At line:1 char:1
+ $searcher.Search("IsInstalled=0 and IsHidden=0")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation

0x80070422 means “the service cannot be started, either because it is disabled or because it has no enabled devices associated with it”, and Settings and sconfig show the same code. It’s one of the most common update error codes, so learn to spot it.

Fix it: set the service back to Manual (its default) and search again:

Set-Service wuauserv -StartupType Manual
Start-Service wuauserv
$searcher.Search("IsInstalled=0 and IsHidden=0").ResultCode

You should see this:

2

ResultCode 2 means the search worked. If a server keeps failing with other codes, the next step is to clear the download cache and repair the component store, which you’ll do in Lesson 49.

✅ Checkpoint: The search failed with 0x80070422 while the service was disabled and returned ResultCode 2 after the fix.

Windows Server patching lab: error 0x80070422 when the Windows Update service is disabled
A disabled Windows Update service gives 0x80070422; setting it back to Manual fixes the search.

2Break it: installed but not patched

Restore SRV01 to the “Before patching” snapshot, or use DC01 if you haven’t patched it yet. Install the cumulative update with sconfig option 6 again and answer No when it asks to restart.

Then compare what the server reports:

(Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-WindowsUpdateClient'; Id=19} -MaxEvents 1).Message
$cv = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'; "Build: $($cv.CurrentBuild).$($cv.UBR)"
Test-PendingReboot

You’ll see something like this:

Installation Successful: Windows successfully installed the following update: 2026-10 Cumulative Update for ...
Build: 26100.NNNN

Computer CBS  WU   FileRename
-------- ---  --   ----------
SRV01    True True True

The event says “successfully installed”, yet the build number hasn’t moved and the new files aren’t in use. Until it restarts the server is still vulnerable, and when a vulnerability scanner flags it, the scanner is right.

Fix it: restart in your maintenance window, then confirm:

Restart-Computer -Force
# after signing in again:
$cv = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'; "Build: $($cv.CurrentBuild).$($cv.UBR)"
Test-PendingReboot

Put Test-PendingReboot in every patch report, because “installed” without “restarted and checked” doesn’t count as patched.

✅ Checkpoint: Before the restart the build was unchanged and pending reboot was True; after it, the build increased and all checks are False.

This happened at work

The night both DCs restarted together

A factory running three shifts had two domain controllers, and both were set to install updates automatically at 3:00 AM on Patch Tuesday night because “that’s when nobody’s working”. The night shift was working. One month both DCs installed the update and restarted together. DC01 was back in ten minutes, but DC02 hit an update failure, rolled back and took over an hour. For those first minutes the shop-floor terminals couldn’t authenticate and production stopped. Then DC01 started throwing replication errors because DC02 kept appearing and disappearing, and the on-call admin spent the whole morning cleaning up and explaining the lost production hours.

The fix: the DCs moved to “download and notify”, with DC02 patched on Wednesday and DC01 on Thursday and a replication check in between. The update windows were agreed with the production managers, and a test server now gets each update a week earlier.

The lesson: having two servers only helps if they aren’t taken down together, so patch one of each pair at a time.

Common mistakes and troubleshooting

Mistake or symptomWhat happensWhat to do instead
Both DCs (or both cluster nodes) patched at onceOutage while both restartOne at a time, check health between
“Installed” without restartingThe server is still vulnerableRestart in the window; check build and pending reboot
Error 0x80070422The Windows Update service is disabledSet wuauserv to Manual and start it
Automatic install and restart on serversRestarts at the wrong timeDownload and notify; patch in planned windows
No test ringA bad update hits production firstTest servers get updates a week earlier
Trusting Get-HotFix aloneSome updates don’t showCheck the build number (UBR)
Skipping monthsLarger risk and bigger changes at oncePatch every month; cumulative updates make catching up possible
No rollback planA bad update leaves you stuckSnapshot or backup first; know wusa /uninstall
Forgetting firmware, drivers and appsHoles outside Windows stay openPatch the whole stack, not only the OS

Interview questions

Click a question to open it. Each one is phrased the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. People in IT talk about Patch Tuesday. What is it?

Why they ask this: They’re checking that you know the monthly cycle most patching plans are built around.

How you might answer: It’s the second Tuesday of every month, when Microsoft releases its security updates, and most teams plan their testing and patching around that date.

2. Can you explain in simple words what a cumulative update is?

Why they ask this: They want to know you understand how Windows updates are packaged, so you don’t waste time installing old ones.

How you might answer: It’s the monthly update, and it already has all the earlier fixes for that Windows version inside it, so if a server has missed a few months I only need to install the latest one.

3. Updates finished installing on a server. How do you check if it still needs a restart?

Why they ask this: They want to see you’ve done this for real, because a pending restart can leave a server half-patched.

How you might answer: I’d look at the registry keys, CBS RebootPending, WindowsUpdate RebootRequired and PendingFileRenameOperations. The Settings page shows it too, or I can check in sconfig.

2–5 years experience

4. You have two domain controllers to patch tonight. How would you do it?

Why they ask this: They want to see that you think about availability and check health before moving on.

How you might answer: One at a time. I’d patch and restart DC02 first, confirm with repadmin that it’s back and replicating, and only then do DC01. I wouldn’t restart both together, because then nobody can sign in.

5. What tools have you seen for managing Windows Server updates centrally?

Why they ask this: They want to know which options you’ve come across and whether you know where each one stands today.

How you might answer: I’ve seen Group Policy with Windows Update, WSUS, Azure Update Manager with Azure Arc, Configuration Manager and some third-party tools. WSUS is deprecated now, though it’s still available.

6. One server fails its updates with the same error every month. How would you get to the bottom of it?

Why they ask this: They want structured troubleshooting, not someone who keeps retrying the install.

How you might answer: I’d start with the error code from event 20 or the Windows Update log, and check the update services and free disk space. Then I’d reset the download cache, and if it still fails I’d run DISM /RestoreHealth and sfc /scannow and read CBS.log to find the real cause.

Senior level

7. You’re asked to design a patching process for 300 servers. How would you set it up?

Why they ask this: They want to see you think in rings, automation and reporting, not only about installing updates.

How you might answer: I’d build rings by risk, test first, then pilot, then production waves, with maintenance windows for each application, and I’d split servers that work in pairs across different waves. The whole thing would be automated with checks before and after, reporting build numbers and pending restarts, and any exception would be tracked with a named owner.

8. Your manager hears about hotpatching on Windows Server 2025 and asks if we can stop restarting servers. What would you tell them?

Why they ask this: They want to know you’re up to date and can be honest about the limits.

How you might answer: I’d say it helps a lot. With Azure Arc and a subscription, the monthly security updates install in memory without a restart. But the quarterly baseline updates and some fixes still need a restart, and it doesn’t cover every scenario, so we’d restart less often but not never.

9. WSUS is deprecated. What would you recommend to a company that still uses it?

Why they ask this: They want to see that you can plan a calm migration based on the company’s situation.

How you might answer: I’d keep WSUS running while it still works so nothing breaks today, and plan the move in parallel. Depending on how much they use the cloud and what licensing they have, that would be Azure Update Manager with Arc, Intune for clients, or Configuration Manager.

Quick quiz

Q1. When is Patch Tuesday?

  1. The first Monday
  2. The second Tuesday of the month
  3. Every Friday
Show answer

B — Monthly security updates release then.

Q2. What does the UBR in 26100.NNNN tell you?

  1. The edition
  2. Which cumulative update is installed
  3. The licence type
Show answer

B — It rises with each update.

Q3. What does error 0x80070422 usually mean?

  1. No internet
  2. The Windows Update service is disabled
  3. A corrupt update
Show answer

B — Set wuauserv to Manual and start it.

Q4. Why wasn’t SRV01 patched after “Installation Successful”?

  1. The KB was wrong
  2. It hadn’t restarted yet
  3. The GPO blocked it
Show answer

B — Pending reboot was True.

Q5. In the work story, what caused the outage?

  1. A virus
  2. Both DCs restarted for updates at the same time
  3. A broken switch
Show answer

B — Patch one of each pair at a time.

Quick recap

  • Windows Server patching means monthly cumulative updates, in rings, with a restart and a check.
  • The build number (26100.UBR) is the best measure of how patched a server is.
  • Search and install with sconfig or the Windows Update API, and read events 19 and 20.
  • Use a GPO (like C-Server-Updates) for download-and-notify on servers.
  • Patch DCs one at a time, with a replication check in between.
  • If it hasn’t restarted it isn’t patched, so check Test-PendingReboot.

Next lesson

Lesson 25: IIS web server → Next you’ll install IIS on SRV01, publish the intranet site at intranet.saatlab.internal, run its app pool as gmsa_intranet, add an HTTPS binding, switch on Windows authentication with Kerberos and fix HTTP 500 and 401 errors.

Further reading: Windows Server patching

Want to go deeper into Windows Server patching? Microsoft’s Windows Server release information lists every build number, and the Azure Update Manager overview covers central patching. You can also see the full plan for this course on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.