Urgent.News

What's breaking now, across thousands of outlets.

Tech

How To Fix Windows Error Code 0x80070005?

Windows Error Code 0x80070005 means “ Access is Denied .” It usually appears when Windows Update fails, an app or program refuses to install, the Microsoft Store won’t download something, or a file/folder can’t be opened or changed.The good news: this is one of the most common Windows errors and almost always has a simple fix. You don’t need advanced tech skills — just follow the steps below in…

Windows Error Code 0x80070005 denotes “Access is Denied.” This typically occurs during Windows Update failures, installation issues with apps or programs, the Microsoft Store struggling to download content, or when files/folders cannot be opened or modified. Despite being a prevalent Windows problem, it can usually be resolved with straightforward steps. Most users can fix it within 10–20 minutes without requiring advanced technical knowledge.

The primary cause of this error is often due to insufficient administrator permissions. Other factors include corrupted Windows Update files or cache, incorrect folder ownership, particularly in the WinSxS or SoftwareDistribution directories, third-party antivirus or security software interfering with access, or damaged system files.

Before attempting any fixes, verify that you are logged in with an administrator account. Temporarily disable any third-party antivirus software (Windows Security should remain active). Restart your computer before proceeding with the troubleshooting steps.

The easiest initial step is to run the Windows Update Troubleshooter. Press the Windows key + I to open Settings, navigate to System → Troubleshoot → Other troubleshooters (or Update & Security → Troubleshoot → Additional troubleshooters on Windows 10). Select Windows Update and click Run. Allow the troubleshooter to complete its process, apply any suggested fixes, and restart your computer before attempting the update again.

A more effective method is to reset the Windows Update components. This clears any corrupted update cache, which is often the main reason for encountering 0x80070005 during updates. To do this, open the Command Prompt as an administrator and execute the following commands in sequence, pressing Enter after each one: net stop wuauserv, net stop bits, net stop cryptSvc, net stop msiserver.

Next, rename the update folders by typing ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and ren C:\Windows\System32\catroot2 catroot2.old. Then, restart these services using the following commands: net start msiserver, net start cryptSvc, net start bits, net start wuauserv. Restart your computer and attempt to download and install updates once more. Windows will generate new folders automatically.

If the error persists, repairing system files with the Deployment Image Servicing and Management (DISM) tool and the System File Checker (SFC) utility can be effective. Open the Command Prompt as an administrator and first run DISM /Online /Cleanup-Image /RestoreHealth, which may take 10–30 minutes. Subsequently, execute sfc /scannow. Once both commands have completed, restart your computer.

Should the issue still not be resolved, resetting permissions on critical folders—specifically the WinSxS and SoftwareDistribution directories—is recommended by Microsoft. To do this, open the Command Prompt as an administrator and execute the commands icacls %windir%\WinSxS /reset /t /c /q and icacls %windir%\SoftwareDistribution /reset /t /c /q. Then, set the correct owner with the commands icacls %windir%\WinSxS /setowner NT SERVICE\TrustedInstaller /t /c /q. Restart your computer and try updating again.

If the issue arises specifically when installing apps from the Microsoft Store, you can try resetting the store or app by pressing Windows key + R, typing wsreset, and pressing Enter. Wait for the blank window to close, then restart the Microsoft Store and try installing the app again. Alternatively, navigate to Settings → Apps → Installed apps → Microsoft Store → Advanced options → Reset.

For situations where a specific program installation fails due to the error, right-click the problematic folder, select Properties, go to the Security tab, click Advanced, change the owner by typing your username, click Check Names, and then OK. Ensure the box "Replace owner on subcontainers and objects" is checked before applying the changes and attempting the installation again.

If none of the aforementioned methods resolve the issue, creating a new local administrator account and attempting the process from there could be a solution. Alternatively, consider performing an In-place Upgrade using the Windows 11/10 Media Creation Tool from Microsoft while opting to "Keep personal files and apps." Lastly, as a last resort, use the Reset this PC feature while retaining your files.

In most cases, adhering to Method 2 or Method 3 should adequately resolve Error 0x80070005. It's crucial to follow each step methodically, as all procedures are safe and reversible.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Your Backups Don't Exist Until You've Restored One: A Monthly Drill for a Solo SaaS

Ask a solo SaaS founder about backups and you usually get the same answer. "Yeah, the host does daily backups." Then you ask when they last restored one, and it gets quiet.

  • Monthly restore drill crucial for solo SaaS founders to validate backups.
  • Process takes about an hour initially, 20 minutes thereafter.
  • Verifying restored backup through queries and comparing with production data.

SSH Usernames: Log In as the Right Remote Account

An SSH connection can reach the right server and still fail because the client is trying to log in as the wrong user. The username identifies an account on the remote machine ; it is not necessarily…

  • SSH connection requires correct remote username
  • Username syntax: username@hostname
  • Specify username with -l option if needed

Custom Cards in Home Assistant: Mushroom and button-card

The stock cards in Home Assistant get you a working dashboard in an afternoon. I wrote that one up in five build steps and left it there for a while.

  • Mushroom cards provide compact tile cards with customizable typography and icons
  • Button-card enables JavaScript rendering for custom field computations based on sensor states

fix == vector: shipping a security fix to a whole fleet without arming the attacker

fix == vector: shipping a security fix to a whole fleet without arming the attacker A short, practical note on the one timing problem every open-source infrastructure team has and most never name: the…

  • Fixing security vulnerabilities in open-source software exposes previously undisclosed weaknesses.
  • Pulsed Media treats security releases as a single, ordered pipeline to minimize exposure window.

More from Tuesday 6 October →