Skip to main content

Error 0x80070005 “Access Denied”: Where It Comes From and Four Fixes

Carl HamiltonBy Carl HamiltonFounder, Hamilton Group
5 Aug 2026
Media Error 0x80070005 (Access Denied) Where It Comes From and Four Fixes

 

Windows Update downloads normally.

Installation begins.

Then Windows stops with:

0x80070005

You may also see:

Access is denied

or:

E_ACCESSDENIED

At first glance, that sounds like a simple administrator-permissions problem.

It often isn't.

0x80070005 means a process tried to access something and Windows refused it.

During Windows Update, that “something” might be:

the Windows component store

SoftwareDistribution

a Registry location

an update package

a file locked by security software

a system directory restricted by policy


Microsoft’s current Windows Update guidance specifically identifies incorrect permissions affecting WinSxS, SoftwareDistribution, the Component Based Servicing Registry area, SYSTEM access and third-party security software as recognised causes.

The important rule is:

Do not respond by taking ownership of every Windows folder.

Windows servicing depends on carefully controlled permissions.

Fix the actual damaged layer.

First: Confirm Where 0x80070005 Appears

This error code is not exclusive to Windows Update.

You can also encounter it with:

Microsoft Store

application installation

Windows activation

OneDrive

camera/privacy permissions

services

file access


So context matters.

If Windows Update reports 0x80070005, use the troubleshooting process below.

If Outlook, OneDrive or another application reports the same hexadecimal code, investigate that application rather than resetting Windows Update.

Record the Failed Update

Open:

Settings > Windows Update > Update history

Record:

KB number

Windows version

error code

whether it is a quality, feature or driver update


Press:

Windows + R

and enter:

winver

A useful support note might look like:

Windows 11 Pro 25H2

Failed update: KB50xxxxx

Error: 0x80070005

This matters if one particular package is failing while everything else installs normally.

Check the Logs Before Changing Permissions

Microsoft recommends checking Windows Update and CBS logging for the actual denied operation.

In PowerShell, run:

Get-WindowsUpdateLog

Also review:

C:\Windows\Logs\CBS\CBS.log

Look around the failure timestamp for:

0x80070005

Possible entries may show that Windows failed to:

create a file

open a package

write to WinSxS

access SoftwareDistribution


Do not change permissions merely because a folder appears somewhere in the log.

Look for the actual Access Denied event associated with the failed update.

Before the Fixes

Before changing servicing permissions:

back up important data

confirm BitLocker recovery information is available

restart Windows once

make sure adequate storage is free

note whether the device is managed by an employer


Microsoft’s dedicated guidance explicitly recommends backing up the operating-system disk before carrying out these repairs.

On a managed PC, Intune, Group Policy, Autopatch, endpoint protection or another management agent may intentionally control parts of Windows Update.

Do not remove company management controls locally.

Fix 1: Repair Windows Update Permissions

Microsoft’s first supported fix is to reset permissions on the component store and SoftwareDistribution.

Open:

Terminal (Admin)

or:

Command Prompt (Admin)

Run:

icacls "%windir%\WinSxS" /reset /t /c /q

then:

icacls "%windir%\SoftwareDistribution" /reset /t /c /q

These commands reset ACL entries across the relevant update locations.

They may take some time, especially against WinSxS.

Restart Windows and retry the update.

Restore TrustedInstaller Ownership

If the problem continues, Microsoft’s next step is to ensure that TrustedInstaller owns the Windows component store.

Run:

icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q

Restart again.

This is a key distinction.

You do not want:

your account

or:

Administrators

to become the permanent owner of WinSxS.

TrustedInstaller ownership exists for a reason.

Do Not Do This

Avoid:

granting Everyone Full Control

taking ownership of C:\Windows

deleting files manually from WinSxS

running random “take ownership” Registry tweaks

copying ACLs from another PC


Those changes can break Windows servicing much more severely than the original error.

Fix 2: Rebuild Windows Update’s Working Folders

If permissions are correct but the update cache/catalogue is damaged, reset the Windows Update components.

Microsoft’s current 0x80070005 guidance uses this sequence.

Open an elevated Command Prompt.

Stop the relevant services:

net stop wuauserv
net stop bits
net stop cryptSvc

Rename the update folders:

ren %windir%\SoftwareDistribution SoftwareDistribution.old
ren %windir%\System32\catroot2 catroot2.old

Then restart the services:

net start cryptSvc
net start bits
net start wuauserv

Restart Windows.

Then:

Settings > Windows Update > Check for updates

Windows will recreate fresh working folders.

This does not uninstall updates already installed.

It simply forces Windows Update to rebuild some of its local download and catalogue state.

Fix 3: Repair Windows Servicing With DISM and SFC

If Windows Update permissions have been repaired but the update still fails, the servicing store itself may be damaged.

Run:

DISM /Online /Cleanup-Image /RestoreHealth

Microsoft specifically includes DISM as the next stage in its current 0x80070005 repair sequence.

Allow it to finish.

Then run:

sfc /scannow

Microsoft’s guidance then uses SFC to verify and repair protected Windows system files.

Restart when both commands have completed.

Then test Windows Update again.

Why DISM Before SFC?

Think of it this way:

DISM repairs the Windows component store.

SFC uses that trusted component store when repairing protected operating-system files.

So:

DISM → SFC

is the more logical order when servicing corruption is suspected.

If DISM Cannot Repair Windows

If DISM reports that source files could not be found, the machine may need:

access to Windows Update

an appropriate repair source

matching installation media

a repair reinstall


Do not use random Windows ISO files from unofficial sources.

The repair source should match the appropriate:

architecture

Windows release

language


Consider Windows 11 Repair Reinstall

On supported Windows 11 PCs, check:

Settings > System > Recovery

Look for:

Fix problems using Windows Update

and:

Reinstall now

This can reinstall the current Windows version while preserving:

personal files

applications

settings


It can be an excellent next step when the Windows servicing stack itself remains damaged.

Managed business devices may not expose this option if update policy is centrally controlled.

Fix 4: Check for Security or Management Software Interference

If Windows permissions and servicing are healthy, third-party software becomes more interesting.

Microsoft explicitly lists third-party antivirus/security tools locking Windows Update files as a cause of 0x80070005.

Products that operate deeply inside Windows may install file-system filter drivers, including:

antivirus

EDR

backup software

disk encryption

application control

storage utilities


These can potentially prevent servicing components from accessing files.

Use a Clean Boot for Ordinary Software Conflicts

For a general software-conflict test:

Press:

Windows + R

Enter:

msconfig

On the Services tab:

1. Select Hide all Microsoft services.


2. Disable remaining third-party services temporarily.

 

Then disable non-essential startup applications through Task Manager.

Restart and test Windows Update.

If the update succeeds, re-enable software methodically until you identify the conflict.

Do not leave security software permanently disabled.

Fix or update the offending product.

Advanced: Check File-System Filter Drivers

Microsoft’s current guidance also recommends:

fltmc

to list installed file-system filters.

You may see filters belonging to:

antivirus

backup

encryption

storage products


Microsoft documents unloading an identified non-Microsoft filter with:

fltmc unload <DriverName>

but this is advanced troubleshooting.

Unloading the wrong filter can disrupt:

storage

encryption

endpoint security

backup


On a business PC, I would leave this step to an experienced engineer.

What About the Windows Update Troubleshooter?

It is still worth running before deeper repair.

Open:

Settings > System > Troubleshoot > Other troubleshooters

Run the Windows Update troubleshooter.

On newer Windows 11 systems, Microsoft may route troubleshooting through the Get Help experience.

It may correct routine service and update-state issues.

But if TrustedInstaller genuinely lacks access to WinSxS, the dedicated permission fixes are much more relevant.

Why “Run as Administrator” Often Does Not Fix It

This error is easy to misunderstand.

You may already be a local administrator.

Windows Update can still return:

0x80070005

because servicing relies on security identities such as:

SYSTEM

TrustedInstaller

Windows services


Your administrator account being able to elevate does not mean TrustedInstaller has the correct ACL on WinSxS.

That is why repeatedly right-clicking:

Run as administrator

may make no difference.

The denied process may not be your process.

What If the Error Appears on Several Company PCs?

Now suspect something central.

Possible causes include:

Group Policy

Intune

Autopatch policy

EDR update

security baseline

management agent

new application-control configuration


Microsoft specifically identifies Group Policy or management software restricting writes to Windows directories as a potential source of 0x80070005.

If ten PCs started failing after the same policy deployment, do not repair ACLs independently on all ten.

Fix the central configuration.

The Four Fixes in the Right Order

For Windows Update error 0x80070005:

1. Repair permissions

icacls "%windir%\WinSxS" /reset /t /c /q
icacls "%windir%\SoftwareDistribution" /reset /t /c /q

Then restore TrustedInstaller ownership where needed.

2. Reset Windows Update components

Rebuild:

SoftwareDistribution

catroot2


3. Repair Windows

Run:

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

4. Investigate third-party interference

Check:

antivirus

EDR

backup

encryption

policy

filter drivers


That sequence is very close to Microsoft’s dedicated May 2026 repair procedure.

When to Stop Repairing and Escalate

Get deeper assistance if:

ACL resets repeatedly fail

WinSxS ownership keeps changing back incorrectly

DISM cannot repair the image

multiple company PCs fail simultaneously

EDR/management software appears involved

Windows servicing logs show repeated component-store corruption

the PC is business-critical or BitLocker-protected and you are unsure about the repair steps


At that point, repeated permission experiments can create more problems than they solve.

How Hamilton Group Can Help

Hamilton Group can help diagnose Windows Update failures involving:

0x80070005

Windows servicing

TrustedInstaller permissions

SoftwareDistribution

DISM and SFC

Microsoft Intune

Windows Autopatch

endpoint security

Group Policy

business Windows 11 devices


For managed businesses, we can also determine whether the error is an isolated PC problem or the result of a policy, security agent or update configuration affecting multiple machines.

Visit hgmssp.com or call 01423 438 953.

Carl Hamilton
About the author
Carl Hamilton
Founder, Hamilton Group
Carl Hamilton is the founder of Hamilton Group, a UK managed IT services provider helping small and medium businesses stay secure, productive and well supported with proactive IT, cyber security and Microsoft 365 expertise.

0 comments

  1. Be the first to comment.

Join the conversation

Comments are checked before they appear.

Your email stays private; we never publish it. By commenting you agree to our acceptable-use terms.