Access denied while installing
Access denied. According to Microsoft, file or registry permissions were changed and the component that installs updates does not have the access it needs.
Why it happens
- Changed file or registry permissions.
- An antivirus or security program blocking the installation.
- Using an account without administrator rights.
How to fix it
- Sign in with an administrator account.
- If you use an antivirus other than Windows Security, uninstall it with its maker's removal tool and run a few days with Windows Security only.
- Run the Windows Update troubleshooter: on Windows 11, Settings › System › Troubleshoot › Other troubleshooters › Windows Update; on Windows 10, Settings › Update & Security › Troubleshoot.
- Repair Windows files: open Command Prompt as administrator (search for «cmd», right-click › Run as administrator) and run
DISM /Online /Cleanup-Image /RestoreHealthand thensfc /scannow. Restart when it finishes.
Meaning based on Microsoft's official documentation. The steps are general guidance: if you are not sure, ask a technician for help.