# 0x80070005: Access denied (permission error)

> Source: https://karincalisans.com/en/windows-error-codes/0x80070005/ · Updated: 2026-08-28 · Publisher: Karınca Lisans

0x80070005 means the activation operation ran without the required privileges: the slmgr command was executed in a non-elevated window, or permissions on the licensing folders are broken. Security software locking files produces the same code. Running the command as administrator resolves most cases.

## Most common causes

- slmgr or the activation command ran in a non-elevated Command Prompt
- The local account is not in the Administrators group
- Antivirus/security software is locking the licensing folder
- NTFS permissions on %windir%\System32\spp are corrupted

## Step-by-step fix

1. Type "cmd" in Start and choose "Run as administrator"; run "slmgr /ipk KEY" and "slmgr /ato" in that window.
2. Under Settings → Accounts confirm your account is "Administrator"; if not, try with an admin account.
3. Temporarily disable third-party antivirus and retry.
4. Run "sfc /scannow" in an elevated Command Prompt; permission corruption is often repaired.
5. If it persists, restart the service with "net stop sppsvc" → "net start sppsvc" and retry.

## Frequently Asked Questions

### I get this error from the Settings screen too?

Settings uses the same service in the background; the cause is usually security software or broken permissions. Disable the antivirus, run sfc /scannow, then retry.

### Does this error mean my license is invalid?

No. 0x80070005 is purely a local permission error; key validation has not been reached.
