E_ACCESSDENIED
Access is denied. Seen with Windows Update, installers and scripts when the service or account can't write to a file, folder or registry key.
How to fix it
Reviewed 23 Oct 2026 · version 1Applies to: Windows 10, Windows 11, Windows Server
Common causes
- The Windows Update cache (SoftwareDistribution) is damaged or locked.
- Third-party antivirus or endpoint protection blocks the change.
- The command wasn't run elevated.
- Permissions on a folder or registry key were changed.
Troubleshooting steps
- 1Run the command or installer from an elevated prompt.
- 2For Windows Update: reset the update components (stop wuauserv, bits and cryptsvc, rename SoftwareDistribution and catroot2, start the services).
- 3Temporarily disable third-party antivirus and retry.
- 4Run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow.