Error 0x80070005 — Access Denied during Activation
The 0x80070005 error during the activation of the Windows system or Microsoft Office package means access denied. In simple terms: the system or activation service tries to perform an operation, but it does not have the required permissions. Most often, this is due to a lack of administrator rights, blocked licensing services, registry issues, damaged system files, or the operation of a security program that blocks the activation process.
What this Error Means
In practice, the 0x80070005 message says that:
- the system cannot write or read the data needed for activation,
- the user account does not have the appropriate permissions,
- the activation service is blocked, disabled, or damaged,
- the local security policy or antivirus software prevents the completion of the process.
This is not usually a problem with the product key itself. Most often, it's about access to system resources, not an incorrect activation code.
When the 0x80070005 Error Occurs
This code can occur in several typical situations:
- during Windows system activation after installation or reinstallation,
- when changing hardware, especially the motherboard,
- after entering the product key in the activation window,
- during Office activation in Word, Excel, or Outlook applications,
- after a system update, when licensing services stop working correctly,
- in corporate environments with activation via
KMSorMAK, - after system restoration or user profile migration.
Causes
The most common causes of the 0x80070005 error are:
- lack of running the command line as an administrator,
- damaged or incomplete system files,
- disabled or malfunctioning Windows licensing service,
- damaged activation store,
- conflict with antivirus software or firewall,
- restrictions imposed by local security policies,
- incorrect permissions for system folders or registry entries,
- problem with the
Software Protectionservice, - errors after Windows update,
- incorrect configuration of network activation
KMS, - damaged Microsoft Office installation,
- running
slmgr.vbsorospp.vbscommands without elevated privileges.
If you need help resolving this issue, please contact us at [email protected] or call 00 800 121 1654 for assistance.
Step-by-Step Solution
Run all the commands below in Command Prompt as administrator.
1. Open CMD with Administrator Privileges
- Open the Start menu.
- Type
cmd. - Right-click
Command Prompt. - Select
Run as administrator.
If this step is skipped, the 0x80070005 error may appear immediately when attempting to activate.
2. Check and Repair System Files
First, run the system file integrity check:
sfc /scannow
Then, run the system image repair:
DISM /Online /Cleanup-Image /RestoreHealth
After both operations are complete, restart your computer.
3. Try to Reactivate Windows
If you are activating the Windows system, use the commands:
slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr.vbs /ato
Replace the XXXXX-XXXXX-XXXXX-XXXXX-XXXXX string with your valid product key.
If the key is already saved in the system, you can run only:
slmgr.vbs /ato
Additionally, it's worth checking the license details:
slmgr.vbs /dlv
slmgr.vbs /xpr
4. Check the Software Protection Service
The Windows activation service must be working properly. Check its status with the command:
sc query sppsvc
If the service is not running, try to start it:
net start sppsvc
5. Activate Microsoft Office
For Office, go to the installation directory and use ospp.vbs.
For 64-bit Office in Microsoft 365 / Office 2021 / 2019, it is usually:
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript ospp.vbs /act
For 32-bit version installed on a 64-bit system, use:
cd "C:\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript ospp.vbs /act
If Office is already linked to a Microsoft account, the command with the key may not always be necessary, but cscript ospp.vbs /act can still help force activation.
Alternative Repair Methods
If the basic method does not help, perform the following steps.
Temporarily Disable Antivirus Software and Firewall
Some security packages block writing to licensing services or running activation scripts. Temporarily disable protection, run activation again, and then re-enable security after testing.
Check Date, Time, and Time Zone
An incorrect system date can cause activation and authentication errors for Microsoft services.
Run the Activation Troubleshooter
In Windows, go to:
Settings > System > Activation > Troubleshoot
This method is particularly effective after hardware changes or after reinstalling the system.
Rebuild System Components and Try Again
If sfc and DISM detected errors, but activation still fails with access denied, restart your computer and run again:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
slmgr.vbs /ato
Check Office Activation Status
For Office, additional diagnostic commands are helpful:
cscript ospp.vbs /dstatusall
cscript ospp.vbs /act
Use a Different Administrator Account
If the user profile has damaged permissions, activation from a different local administrator account may succeed.
For assistance, please contact us at [email protected] or call 00 800 121 1654.
When to contact support
Call 00 800 121 1654 when:
- error
0x80070005persists despite completing all steps, - activation does not work after hardware replacement,
- you have a legitimate key, but
slmgr.vbs /atoorospp.vbs /actstill end with an error, - you are using a corporate
KMSorMAKlicense and are unsure if the server configuration is correct, - the system or Office was previously activated, but lost activation status after an update,
- other licensing-related errors occur simultaneously.
Before contacting us, prepare:
- your Windows or Office version,
- the type of license,
- the full error message,
- the result of the
slmgr.vbs /dlvorcscript ospp.vbs /dstatuscommands.
Related errors
Error 0x80070005 is often accompanied by or confused with:
0xC004F074— a problem with theKMSserver,0xC004C008— the key has been used on too many devices,0xC004F050— an invalid product key,0x803F7001— no valid digital license,0x8007232B— a problem with theDNShost name duringKMSactivation,0xC004E016— the key does not match this product edition.
Summary
Error 0x80070005 during activation primarily indicates a problem with permissions or access to system components. In most cases, running CMD as an administrator, repairing files with sfc and DISM commands, and then re-activating through slmgr.vbs or ospp.vbs helps. If the problem persists despite completing all steps, further diagnostics should already include the license itself, service configuration, and phone support. You can also contact us at [email protected] or call 00 800 121 1654 for assistance.