Windows users may encounter error 0x80070005 – “Access denied” when updating, activating or restoring the system. This problem occurs on any edition and version of Windows OS, regardless of the number of rights the computer user has. Occasionally, you may encounter the error 0x80070005 in other situations, for example, when you are trying to remove an application from your computer. In this article, we will tell you what has to be done if access is denied due to error 0x80070005 in various typical situations.
Table of contents: 1. 0x80070005 at Windows activation or update 2. 0x80070005 at restoring Windows
0x80070005 at Windows activation or update
Most often, users have to face error 0x80070005 when they are trying to update the computer system. In such a situation, the official Microsoft application called Subinacl.exe will help to eliminate it. We recommend acting as follows:
- Download the Subinacl.exe application from the official Microsoft website and install it. Please note that it is best to install the program to the root of the system drive. If you have drive C as a system drive, then select C: \ subinacl \ as the installation location. Important: If you choose another place to install the Subinacl application, you will need to make changes to the codes below.
- After installing the program, run a regular notepad and copy the following script into it:
@echo off Set OSBIT=32 IF exist "%ProgramFiles(x86)%" set OSBIT=64 set RUNNINGDIR=%ProgramFiles% IF %OSBIT% == 64 set RUNNINGDIR=%ProgramFiles(x86)% C:\subinacl\subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing" /grant="nt service\trustedinstaller"=f @Echo end. @pause
- Next, this script must be saved in the extension .bat. To do this, select “File” – “Save As” in the upper part of the window. Among the available options choose “All files” in the “Save as type” column and specify a name for the file with the extension .bat. Save the file somewhere, from where it will be convenient to run it later on, the best option would be to save it at the desktop;
- After that, right-click on the file and select “Run as administrator”. The script will start, and after a while the message that says “Ready” will appear in front of you. Close the command line and restart your computer, then try again to update or activate the system.
If after performing the steps described above, the problem with error 0x80070005 is still there, you can try to execute another code, also having it previously saved it in the .bat extension in your notepad:
@echo off C:\subinacl\subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CURRENT_USER /grant=administrators=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f C:\subinacl\subinacl.exe /subdirectories %SystemDrive% /grant=administrators=f C:\subinacl\subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CURRENT_USER /grant=system=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CLASSES_ROOT /grant=system=f C:\subinacl\subinacl.exe /subdirectories %SystemDrive% /grant=system=f @Echo end. @pause
Important note: This code may cause errors in the operating system, so we recommend to save all important data from your computer to external drives or to some cloud storages.
Running the code, you will see a command line window where permissions for the main sections and folders of the operating system will change. When the code execution comes to an end, you will need to restart your computer and try to update or activate Windows again.
0x80070005 at restoring Windows
Another typical situation where the user may encounter an error 0x80070005 is the operatng system recovery. Here are some tips on fixing error 0x80070005:
- Try disabling antivirus and performing system restore. Quite often, it is the antivirus software that is to blame for the occurrence of the error in question. If you cannot disable it, remove the antivirus from your computer completely;
- Make sure the Volume Shadow Copy service is enabled. To do this, you need to start the list of services: press the Windows + R keys combination on the keyboard and use the msc command. After opening the list of services, find the Volume Shadow Copy in the list and, if it is disabled, turn it on and set the startup mode;
- Make sure the System Volume Information folder is not read-only. To do this, go to the “Control Panel” and go to the “File Explorer Options” section. Next, on the “View” tab, uncheck the “Hide protected operating system files (Recommended)” option and turn the display of hidden files and folders on. After that, save the changes and proceed to the system drive. Find the System Volume Information folder on it, right-click on it and go to “Properties”. Make sure not to check the “Read Only” box;
- Perform selective system startup. To do this, click Windows + R keys on the keyboard and in the “Run” line write the msconfig A list of system configurations will open and here you need to go to the “General” tab and check the “Selective Startup” item, while turning off system services and startup items;
- Reset the repository. To do this, you must start the operating system in safe mode. Once in safe mode, run a command line as an administrator and execute the net stop winmgmt Next, follow the path Windows \ System32 \ wbem \ repository and change the name of the repository folder to any other. After that, restart the computer in safe mode and use net stop winmgmt again in the command line. Next, run another winmgmt / resetRepository on the command line. Now reboot your computer.
It is worth noting that if the methods of 0x80070005 access error troubleshooting did not work when restoring Windows you can try activating or updating the system.