Windows Update troubleshooting: logs, DISM, sfc and resets

Back in Lesson 24 you installed updates, and this time you’ll fix the ones that refuse to go in. Windows Update troubleshooting mostly comes down to reading the right log, repairing the component store, and resetting the update client when its cache gets damaged.

You’ll read WindowsUpdate.log and CBS.log, check and repair the component store with DISM and sfc, reset the Windows Update components safely, and get past the classic “source files could not be found” error.

TimeYou needBy the end you can
About 75 minutesSRV01 and the Windows Server 2025 ISORead update errors, repair the component store and get a stuck server updating again

What it is, in one line

Windows Update troubleshooting means using the logs and the error code to find out why an update fails (download, component store, space or a blocked service), and then repairing that part.

In Simple Words

In Simple Words

Imagine a big toy kit that comes with a box of spare parts. Every time a new part arrives in the post, you fit it into the toy and put the old one in the box. If that spare-parts box has broken or missing pieces, the new parts won’t fit and the post office keeps sending the same parcel back. In Windows the spare-parts box is the component store (WinSxS), and most stubborn update failures get fixed by checking and repairing that box, not by downloading the update over and over.

Engineer's View

Engineer’s View

The pipeline: the Windows Update client (wuauserv, with BITS) scans and downloads into C:\Windows\SoftwareDistribution. After that the servicing stack (TrustedInstaller and CBS) installs the packages into the component store at C:\Windows\WinSxS, and a restart finishes the job.

Logs: Get-WindowsUpdateLog turns the client’s ETL traces into WindowsUpdate.log, which covers scan and download. Installation and sfc repairs go to C:\Windows\Logs\CBS\CBS.log and DISM writes to C:\Windows\Logs\DISM\dism.log, while the Setup event log shows package states and WindowsUpdateClient/Operational shows install results.

Repair tools: DISM /Online /Cleanup-Image /CheckHealth, /ScanHealth and /RestoreHealth repair the component store, and you can point them at a /Source with /LimitAccess. Once the store is good, sfc /scannow repairs the protected system files from it.

Common codes: 0x80070422 (a needed service is disabled), 0x800f081f (source files not found), 0x800f0906 (couldn’t download files), 0x800f0922 (advanced installers failed, often space or the recovery partition), 0x80070002 (file not found, often a damaged download cache), 0x8024402c (proxy or connection problem).

Reset: if you stop wuauserv, bits and cryptsvc and rename SoftwareDistribution and catroot2, you clear the download cache and the signature catalog, and that fixes a lot of scan and download errors.

How it works, step by step

Where an update can fail, and which log tells you:

Windows Update troubleshooting stages: scan, download, install and restart

Always start from the error code and the stage where it happened. If it failed during scan or download, it’s a client or network problem, and if it failed during install, it’s usually the component store, disk space or a missing prerequisite.

Repair in this order: DISM first, because it fixes the store, and then sfc, because it uses the store to fix files. Run sfc against a broken store and it’ll report problems it can’t fix.

Resetting the update cache is safe, but it won’t cure everything, and if the store is damaged the same update will fail again after the reset.

Error code, likely cause and first fix:

Windows Update troubleshooting error codes and first fixes

You’ll do the whole lab on SRV01:

  • Build WindowsUpdate.log and search it for errors.
  • Check component store health with DISM.
  • Verify system files with sfc.
  • Analyse and clean up the component store.
  • Reset Windows Update components and run a fresh scan.

Hands-on lab: read, repair and reset

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 and SRV01 and take a snapshot of SRV01 (“Before update lab”). Then work on SRV01 as SAATLAB\adm.rahul in PowerShell as administrator.

1Build WindowsUpdate.log and search it

On SRV01:

Get-WindowsUpdateLog -LogPath C:\Lab\WindowsUpdate.log
Select-String -Path C:\Lab\WindowsUpdate.log -Pattern 'FATAL|Exit code = 0x8' | Select-Object -Last 3 Line

You’ll see something like this:

Line
----
2026/10/20 09:14:22.1180123 1288  3410  Agent           * END * Finding updates CallerId = UpdateOrchestrator  Exit code = 0x00000000
2026/10/20 09:14:25.4421907 1288  3410  DownloadManager BITS job {7c1e...} completed successfully
2026/10/20 09:16:02.0094415 1288  3410  Handler         Exit code = 0x00000000

Exit code 0x00000000 means success. When a scan or download fails, this is where the real code shows up (0x8024402c for a proxy problem, for example), right next to the component that failed.

✅ Checkpoint: C:\Lab\WindowsUpdate.log exists and you can search it for exit codes.

2Check component store health

On SRV01:

DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth

You’ll see something like this:

Deployment Image Servicing and Management tool
Version: 10.0.26100.1

Image Version: 10.0.26100.NNNN

No component store corruption detected.
The operation completed successfully.

[==========================100.0%==========================]
No component store corruption detected.
The operation completed successfully.

CheckHealth only reads a flag left by earlier scans, so it’s done in seconds, while ScanHealth checks every package and takes several minutes. If either one reports corruption, run /RestoreHealth next.

✅ Checkpoint: Both DISM checks report no component store corruption.

3Verify system files with sfc

On SRV01:

sfc /scannow

You’ll see something like this:

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection did not find any integrity violations.

sfc compares the protected system files with the copies in the component store and replaces any bad ones, and it writes the details to CBS.log tagged [SR].

✅ Checkpoint: sfc reports no integrity violations.

4Analyse and clean up the component store

On SRV01:

DISM /Online /Cleanup-Image /AnalyzeComponentStore

You’ll see something like this:

Component Store (WinSxS) information:

Windows Explorer Reported Size of Component Store : 8.12 GB
Actual Size of Component Store : 7.86 GB
    Shared with Windows : 5.71 GB
    Backups and Disabled Features : 2.02 GB
    Cache and Temporary Data :  134.55 MB

Date of Last Cleanup : 2026-10-12 03:10:41
Number of Reclaimable Packages : 3
Component Store Cleanup Recommended : Yes

The operation completed successfully.

Now clean up the superseded components:

DISM /Online /Cleanup-Image /StartComponentCleanup

WinSxS looks enormous in Explorer because most of it is shared with Windows through hard links, so “Actual Size” is the number to trust. Cleanup removes old versions of updated components and frees space for the next update.

Don’t ever delete files from WinSxS by hand.

✅ Checkpoint: AnalyzeComponentStore shows the real store size, and StartComponentCleanup completes.

Windows Update troubleshooting lab: analysing the component store with DISM
Windows Update troubleshooting: the real size of the component store, and whether cleanup helps

5Reset Windows Update components

Stop the services, rename the caches, start everything again and run a fresh scan:

$svc = 'wuauserv', 'bits', 'cryptsvc'
Stop-Service $svc -Force
Rename-Item C:\Windows\SoftwareDistribution SoftwareDistribution.old
Rename-Item C:\Windows\System32\catroot2 catroot2.old
Start-Service $svc
$searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=0 and Type='Software'")
"Updates found: $($result.Updates.Count)"

You’ll see something like this:

Updates found: 0

Windows recreates both folders on the next scan. Update history in Settings may look empty afterwards, because that list is kept in SoftwareDistribution, but the installed updates themselves aren’t touched (check with Get-HotFix). Once updates have run fine for a week, delete the .old folders.

✅ Checkpoint: The services restart, the caches are recreated and a fresh scan completes.

Break It, Then Fix It

You’ll run into both of these at work: a feature that can’t find its files, and a damaged system file that sfc has to repair.

1Break it: install a feature with no source

On your laptop, disconnect SRV01’s network cable, and then try to add .NET Framework 3.5 on SRV01:

VBoxManage controlvm SRV01 setlinkstate1 off
Install-WindowsFeature NET-Framework-Core

You’ll see something like this:

Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature.
Error: 0x800f081f
Windows Update troubleshooting break lab: 0x800f081f fixed with a local source
0x800f081f means the files weren’t found; a local source fixes it

.NET 3.5 isn’t stored on the server, because it’s a “feature on demand”, so with no Windows Update and no source there’s nowhere to get the files from. You’ll see the same code when DISM /RestoreHealth can’t find good copies to repair the store.

To fix it, attach the Windows Server 2025 ISO to SRV01 (it shows up as D: here) and point to its sxs folder:

Install-WindowsFeature NET-Framework-Core -Source D:\sources\sxs

You’ll see something like this:

Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True    No             Success   {.NET Framework 3.5 (includes .NET 2.0 and 3.0)}

Reconnect the network with VBoxManage controlvm SRV01 setlinkstate1 on. In a company you’d set the “Specify settings for optional component installation and component repair” policy to point at a file share holding the sxs files.

✅ Checkpoint: The install failed with 0x800f081f offline and succeeded with -Source pointing to the ISO.

2Break it: damage a protected system file

On SRV01, take ownership of Notepad and change what’s inside it:

takeown /f C:\Windows\System32\notepad.exe
icacls C:\Windows\System32\notepad.exe /grant Administrators:F
Add-Content C:\Windows\System32\notepad.exe -Value 'broken'
sfc /verifyfile=C:\Windows\System32\notepad.exe

You’ll see something like this:

Windows Resource Protection found integrity violations.
For online repairs, details are included in the CBS log file located at
windir\Logs\CBS\CBS.log.

Now the file doesn’t match the copy in the component store. On a real server that happens after disk errors, bad tools or malware, and it can make updates fail when they try to replace the file.

To fix it, repair the file and then check the log:

sfc /scanfile=C:\Windows\System32\notepad.exe
Select-String -Path C:\Windows\Logs\CBS\CBS.log -Pattern '\[SR\].*notepad' | Select-Object -Last 2 Line

You’ll see something like this:

Windows Resource Protection found corrupt files and successfully repaired them.

Line
----
2026-10-20 11:20:14, Info  CSI  00000012 [SR] Cannot verify component files for Microsoft-Windows-Notepad..., file notepad.exe
2026-10-20 11:20:14, Info  CSI  00000014 [SR] Repairing corrupted file \??\C:\Windows\System32\notepad.exe from store

sfc copied a good version back from WinSxS. If the store copy had been damaged as well, you’d run DISM /RestoreHealth first and then sfc again.

✅ Checkpoint: sfc found the damaged notepad.exe, repaired it from the store, and CBS.log shows the [SR] repair.

This happened at work

The update that failed every month

A security update for the recovery environment kept failing on a group of servers with 0x80070643, month after month. The team retried it, reset Windows Update and ran DISM and sfc on every server, and nothing changed, so the same failure kept turning up in every monthly report. In the end someone sat down and read the update’s Microsoft support article. Its known issues said the update fails when the recovery partition is too small for the new WinRE image, and it gave the steps to grow that partition. These servers had all been built from an old template with a tiny recovery partition, so the team tried Microsoft’s resize steps on a test server first, then on the rest, and after that the update installed everywhere.

The fix: the build template now comes with a larger recovery partition, and reading each update’s known issues is part of the patch process.

The lesson: when the same update fails the same way on every server, read its support article before you start repairing anything.

Common mistakes and troubleshooting

MistakeWhat happensWhat to do instead
Retrying the same update again and againSame failure every timeFind the error code and the failing stage first
Running sfc before DISMsfc can’t fix files when the store is damagedDISM /RestoreHealth first, then sfc
Deleting files from WinSxSUpdates and features breakUse DISM /StartComponentCleanup
Deleting SoftwareDistribution with services runningFiles in use, partial resetStop wuauserv, bits and cryptsvc first; rename, don’t delete
No repair source in isolated networks0x800f081f and 0x800f0906Point the component repair policy at a share or the ISO
Ignoring disk spaceInstall fails or rolls backCheck free space on C: and clean up the store
Not reading the update’s support articleKnown issues missedCheck known issues and prerequisites for each update
Forgetting the pending restartNext update failsRestart, then check again (Lesson 24)

Interview questions

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

Fresher level

1. Windows Update keeps failing on a server. Which log would you look at for the scan and download errors?

Why they ask this: They’re checking you know where Windows Update records its errors on current Windows versions.

How you might answer: I’d look at WindowsUpdate.log. On current versions it isn’t written directly, so I generate it with Get-WindowsUpdateLog, which builds it from the client’s ETL traces, and then I search it for the error code and the time of the failure.

2. Can you explain in simple words what sfc /scannow does?

Why they ask this: They want to know you understand one of the basic repair tools.

How you might answer: sfc /scannow checks the protected system files, and if it finds a damaged one, it swaps in a good copy from the component store. It only does a good job if the component store itself is healthy.

3. A user’s update fails with error 0x80070422. What does that usually mean?

Why they ask this: They want to see you know the common error codes and can sort out the simple cases fast.

How you might answer: It means a service that Windows Update needs is disabled, usually wuauserv, the Windows Update service. I’d put the service back to its normal startup type, start it and run the scan again.

2–5 years experience

4. You need to repair system files. Would you run DISM or sfc first, and why?

Why they ask this: They want to see you understand how the component store and the system files depend on each other.

How you might answer: DISM first, with DISM /Online /Cleanup-Image /RestoreHealth, because it repairs the component store, and then sfc /scannow. sfc uses the store to repair system files, so if the store is damaged it can’t fix much.

5. Updates on one server are stuck and nothing seems to help. How would you reset the Windows Update components?

Why they ask this: They want to know you can fix a broken update client by hand.

How you might answer: I stop the wuauserv, bits and cryptsvc services and rename the SoftwareDistribution and catroot2 folders so Windows builds fresh ones. Then I start the services again and run a new scan.

6. DISM fails with 0x800f081f. How do you get past it?

Why they ask this: They want to see you know DISM sometimes needs a repair source, and where to find one.

How you might answer: That error means DISM couldn’t find the files it needs, so I’d give it a valid source with /Source and /LimitAccess, like the sources\sxs folder on the install media or a mounted install.wim. The other option is to allow Windows Update as the source through the component repair policy in Group Policy.

Senior level

7. The same update fails with the same error code on dozens of servers. How would you handle it?

Why they ask this: They want to see you think at scale and test a fix before rolling it out everywhere.

How you might answer: First I’d read the known issues for that update, then compare one failing server with one that worked and check the prerequisites and the servicing stack. Once I’ve found the fix, I’d test it on one server and only then roll it out to the rest.

8. Some servers sit on an isolated network with no internet. How would you keep them patched?

Why they ask this: They want to see you plan for offline networks and can prove those servers are compliant.

How you might answer: I’d set up a local update source, like Configuration Manager, a WSUS-style process or offline packages, and keep a repair source share for features and DISM. Then I’d run regular compliance reports so we know those servers really are up to date.

9. When would you stop trying to repair updates and just rebuild the server?

Why they ask this: They want to know you can tell when a fix is costing more than it’s worth.

How you might answer: I’d rebuild when the component store can’t be repaired or the repairs keep failing, or when fixing it would take longer than a tested rebuild from automation and backups. That only makes sense if the rebuild process really has been tested.

Quick quiz

Q1. Which folder is the component store?

  1. C:\Windows\SoftwareDistribution
  2. C:\Windows\WinSxS
  3. C:\Windows\Temp
Show answer

B — Updates are installed into it.

Q2. What should you run before sfc on a server with update failures?

  1. chkdsk
  2. DISM /RestoreHealth
  3. gpupdate
Show answer

B — sfc depends on a healthy store.

Q3. What does 0x800f081f mean?

  1. A disabled service
  2. Source files could not be found
  3. A proxy error
Show answer

B — Point to sources\sxs.

Q4. Which tag marks sfc entries in CBS.log?

  1. [SR]
  2. [WU]
  3. [SFC]
Show answer

A — Search for it with Select-String.

Q5. What solved the work story problem?

  1. Resetting Windows Update
  2. Growing the recovery partition
  3. Reinstalling Windows
Show answer

B — The known issues explained it.

Quick recap

  • Windows Update troubleshooting begins with the error code and the stage that failed.
  • WindowsUpdate.log covers scan and download, while CBS.log and dism.log cover installation and repair.
  • Run DISM /RestoreHealth before sfc /scannow.
  • To reset the update cache, stop the services and rename SoftwareDistribution and catroot2.
  • Get past 0x800f081f with a valid /Source, and read the known issues for every update.

Next lesson

Lesson 50: Common service problems → Next you’ll fix services that won’t start because of wrong accounts and passwords, missing dependencies, permissions or timeouts, plus activation errors like 0xC004F074.

Further reading: Windows Update troubleshooting

Want to go deeper into Windows Update troubleshooting? Microsoft’s guide to repairing a Windows image explains each DISM option, and the .NET 3.5 installation errors article explains 0x800f081f and related codes. 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.