Windows Update deployments failing with error 0x80070020 (ERROR_SHARING_VIOLATION)

Casper Whristle 40 Reputation points
2026-11-21T05:04:31.47+00:00

Several endpoints are failing Windows Updates with 0x80070020 (ERROR_SHARING_VIOLATION) even after resetting wuauserv/BITS. Can I pull the locked file path from CBS.log / Get-WindowsUpdateLog and trace the handle in Process Explorer or ProcMon first to see if our EDR agent is locking SoftwareDistribution or WinSxS?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments

Answer accepted by question author
HLBui 16,395 Reputation points Independent Advisor
2026-11-21T05:53:36.48+00:00

Hi Casper Whristle

With 0x80070020 (ERROR_SHARING_VIOLATION), Windows Update is essentially reporting that another process has an open handle on a file or resource that servicing needs to modify. I've seen this a few times with EDR/AV products, backup agents, third-party patching tools, and occasionally indexing services.

I would definitely recommend reviewing CBS.log first, since it often contains the exact file, manifest, or component that failed during servicing. You can also generate and review Windows Update logs with Get-WindowsUpdateLog to correlate the failure timestamp. Once you identify a suspicious path (for example under WinSxS, SoftwareDistribution, or Catroot2), using Process Explorer (Find → Find Handle or DLL) or ProcMon with a path filter is a great next step to determine which process owns the handle.

If an EDR agent is involved, don't just focus on SoftwareDistribution. In many cases the lock is actually occurring within the WinSxS component store, pending servicing files, or catalog-related files that Windows Update needs to manipulate. I'd also compare the timestamp in CBS.log against EDR audit or protection logs to see if real-time scanning is triggering at the same moment as the update failure.

So in short: yes, identifying the locked file from CBS/WU logs and tracing the handle owner is exactly the troubleshooting path I'd take before moving on to more invasive repair actions.

If this helps point you in the right direction, please consider hitting "Accept Answer" so others running into the same 0x80070020 issue can find the solution more easily.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.