What Does Error 0x80070005 Mean When Installing a Driver
Error 0x80070005 is a system code for E_ACCESSDENIED, which literally translates to "Access Denied". It occurs when the driver installation process cannot obtain the necessary permissions to write to protected system directories (such as C:\Windows\System32\drivers) or to make changes to the Windows registry (branches like HKLM\SYSTEM\CurrentControlSet\Control\Class).
Typical dialog:
"Failed to install the device driver. An error 0x80070005 occurred. The driver was not installed."
The error can appear when installing any driver: graphics card, printer, network adapter, or chipset, whether manually via an .inf file or through the manufacturer's installer.
Causes
Error 0x80070005 is almost always related to permissions. Here are the most common causes:
- Running the installer without administrator privileges. The most common scenario. A standard user cannot write files to system partitions.
- Conflict with active antivirus or Windows Defender. A firewall or real-time protection module blocks the attempt to write the driver, mistaking it for a threat.
- Corruption of system files or the registry. Files responsible for the Plug and Play (PnP) mechanism or registry entries managing driver installation are damaged.
- Active processes locking driver files. Another process (e.g., an old driver instance, a device service) is using the files the installer is trying to replace.
- Incorrect security policy settings or UAC. Overly strict local security policy settings or a disabled (or overly complex) User Account Control (UAC) can block legitimate operations.
- Disk or NTFS permissions issues. Encryption features (EFS) are enabled on the system drive, or a file system error occurred, preventing the system from granting access.
Solutions
We recommend performing the solutions in order, from simplest to most complex.
Solution 1: Run the Installation with Elevated Privileges
Before taking any action, ensure the driver installer is running with administrator rights.
- Locate the downloaded driver installation file (usually
.exe) or.inffile. - Right-click on it.
- In the context menu, select "Run as administrator".
- If a User Account Control (UAC) prompt appears, click "Yes".
- Wait for the installation to complete.
💡 Tip: If you have multiple user accounts, ensure you are logged in with an account that belongs to the "Administrators" group.
Solution 2: Temporarily Disable Antivirus and Windows Defender
Antivirus software is often the "prime suspect" in such errors.
- For third-party antivirus: Open its interface and look for an option like "Disable protection" or "Pause protection". This is usually done for 10-15 minutes.
- For Windows Defender (Microsoft Defender):
- Open Control Panel → Security and Maintenance → Windows Security (or Security Center).
- Go to the "Virus & threat protection" section.
- Click "Manage settings" under "Real-time protection."
- Toggle off the switch. The system will warn you about this. Select a disable period (e.g., 15 minutes).
- After disabling, try installing the driver again.
- Be sure to re-enable antivirus protection immediately after a successful installation.
Solution 3: Repair System Files and Components
Corruption of system components responsible for driver installation requires diagnosis and repair.
- Open the Start menu, type
cmd. - Right-click on "Command Prompt" and select "Run as administrator".
- Run the following commands sequentially, waiting for each to complete:
sfc /scannow
(Scans for and repairs corrupted system files)DISM /Online /Cleanup-Image /RestoreHealth
(Repairs the Windows image using Windows Update) - After both operations complete, restart your computer.
- Try installing the driver again.
Solution 4: Manual Installation via Device Manager (for .inf Drivers)
This method bypasses some steps of automatic installation.
- Download the driver and extract its archive (if any) to a separate folder, e.g.,
C:\Drivers\NVIDIA. - Press Win + R, type
devmgmt.msc, and press Enter. - In Device Manager, find the device with the problematic driver (usually marked with a yellow exclamation mark).
- Right-click on it and select "Update driver".
- In the window that appears, select "Browse my computer for drivers".
- Click the "Browse" button and point to the extracted folder containing the driver (where the
.inffile is located). - Click "Next" and follow the instructions. Windows will find the
.inffile and install the driver from it.
Solution 5: Specialized Utilities for "Dirty" Graphics Drivers (NVIDIA/AMD)
For NVIDIA/AMD graphics drivers, a full cleanup of old drivers often helps.
- Download the Display Driver Uninstaller (DDU) utility from its official website.
- Restart your computer in Safe Mode (hold Shift while clicking "Restart" in the Start menu → Troubleshoot → Advanced options → Startup Settings → Restart → press F4).
- In Safe Mode, run DDU.
- In the top menu, select your graphics card manufacturer (NVIDIA/AMD/Intel).
- Click the "Clean and restart (recommended)" button.
- After restarting into normal mode, install the fresh driver downloaded from the official website of your graphics card manufacturer.
Solution 6: Clear and Recreate the Print Spooler (for Printers)
A driver installation error for a printer is often related to a "stuck" print spooler service.
- Press Win + R, type
services.msc, and press Enter. - Find the "Print Spooler" service.
- Right-click → "Stop".
- Now open File Explorer and navigate to:
C:\Windows\System32\spool\PRINTERS. - Delete ALL files from this folder. This clears the print queue.
- Return to
services.msc, right-click the "Print Spooler" service, and select "Start". - Try installing the printer driver again.
Prevention
To avoid error 0x80070005 in the future, follow these guidelines:
- Always download drivers from the official websites of hardware manufacturers (NVIDIA, AMD, Intel, HP, Canon, etc.). Avoid "driver packs" from dubious sources.
- Keep Windows up to date. Regularly install updates via Windows Update. Many updates contain fixes for components related to driver installation.
- Before installing "critical" drivers (chipset, graphics card), create a system restore point via Control Panel → System and Security → System → System Protection → Create.
- Do not ignore UAC prompts. If the system asks to confirm running a program with elevated privileges, don't click "No" without a compelling reason.
- Regularly check your antivirus for false positives. If you notice your antivirus is blocking a legitimate driver installer, add the driver folder to exclusions temporarily during installation.
- Avoid installing multiple drivers simultaneously. Install drivers one by one, rebooting between the installation of major components (chipset → graphics card → others).