Activation Error 0x80070005 Access Denied (Event 8229) and 0x8007000D The Data Is Invalid

slmgr /ato fails with 0x80070005, access denied, the requested action requires elevated privileges? Run it elevated. With event 8229, restore SELF DCOM access in dcomcnfg. Plus 0x8007000D and the Enum\Root registry permission.

Home › Guides › Activation error 0x80070005 access denied

Last updated 22 November 2026

Quick answer

0x80070005 ("Access denied: the requested action requires elevated privileges") during activation has two documented causes. Most often slmgr was run from a Command Prompt that isn't elevated, because User Account Control blocks activation in a non-elevated window: run it as administrator. If it still fails on a domain-joined computer and the Application log shows Security-SPP event 8229 with Error Code:0x80070005, the SELF account has lost its default DCOM access permissions: restore Local Access and Remote Access for SELF in dcomcnfg and restart. A related permission error, 0x8007000D ("The data is invalid"), comes from changed permissions for SYSTEM on HKLM\SYSTEM\CurrentControlSet\Enum\Root.

Which error, which cause

SymptomCauseFix
0x80070005 Access denied, slmgr run from a normal promptUAC prohibits activation processes in a non-elevated Command PromptRight-click Command Prompt, Run as administrator, run slmgr again
0x80070005 on a domain-joined computer, event 8229 (SLUI.exe)The SELF account doesn't have the correct DCOM permissionsdcomcnfg, COM Security, Edit Default (Access Permissions): allow SELF Local Access and Remote Access, restart
0x8007000D The data is invalid, with slmgr -dlv or slmgr -atoPermissions for SYSTEM changed on Enum\Root or a subkeyGive SYSTEM at least Enumerate Subkeys on Enum\Root and its subkeys

0x80070005: what you see

From slmgr /ato (Microsoft's example, a Datacenter server):

Windows Script Host
Activating Windows(R), ServerDatacenter edition (00091344-1ea4-4f37-b789-01750ba6988c) ...
Error: 0x80070005 Access denied: the requested action requires elevated privileges

On the DCOM variant, this warning is logged as well:

Log Name:      Application
Source:        Microsoft-Windows-Security-SPP
Event ID:      8229
Level:         Warning
Description:
The rules engine failed to perform one or more scheduled actions.
Error Code:0x80070005
Path:C:\Windows\System32\SLUI.exe

Fix 1: run slmgr elevated

  1. Open the Start menu and search for Command Prompt.
  2. Right-click it and select Run as administrator.
  3. Run the activation again:
    cscript c:\windows\system32\slmgr.vbs /ato

The same applies on a KMS host: Microsoft lists 0x80070005 for MAK, KMS client and KMS host activation.

Fix 2: restore SELF DCOM permissions (event 8229)

  1. In the Search box type dcomcnfg and open Component Services.
  2. Go to Component Services > Computers, right-click My Computer and select Properties.
  3. On the COM Security tab, under Access Permissions, select Edit Default.
  4. If SELF isn't in the list, select Add, type SELF, Check Names, OK.
  5. Select SELF and tick Allow for Local Access and Remote Access.
  6. Close both dialogs with OK and restart the computer.

Microsoft's article applies to all versions of Windows Server and Windows client.

0x8007000D: The data is invalid

Microsoft's article (KB 2230957) is written for Windows 7 SP1: activating with any type of product key, or running slmgr -dlv or slmgr -ato, fails with:

The data is invalid. Error code 8007000d.

By default the System account has Full Control on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root and all its subkeys. If those permissions were changed on Root or any subkey, you get 0x8007000D. Microsoft's fix is to give the System account at least Enumerate Subkeys on that key and its subkeys (Registry Editor, right-click the key, Permissions). Back up the registry before you change permissions.

To see what SYSTEM has on the key right now (read-only, my line):

(Get-Acl HKLM:\SYSTEM\CurrentControlSet\Enum\Root).Access | Where-Object IdentityReference -like '*SYSTEM*'

Other permission-shaped activation errors

If the code is 0xC004E002 (license store contains inconsistent data), the permissions problem is on the tokens.dat license store instead: see activation errors 0xC004E015 and 0xC004E002. For data collection, Microsoft points to its TSS tool for deployment-related issues, and for Azure VMs to its Azure activation troubleshooting tools.

Related tools and guides

Look up Security-SPP event 8229 in the Windows Event ID Lookup, copy the slmgr and Get-Acl lines from the PowerShell Cheat Sheet, pull the error codes out of slmgr output with the Regex Tester, check which subnet the computer is on with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of the computer NIC with the MAC Vendor Lookup. Related guides: activation errors 0xC004E015 and 0xC004E002, activation errors 0xC004C003 and 0xC004C008, KMS activation error 0xC004F074 and common Windows DNS Server and DHCP Server errors.

Windows is not genuine with a black desktop, and slmgr /dlv shows 0x80070005 even when elevated? See Windows is not genuine and 0x8004FE21.

Every Windows activation and KMS error code and event in one place: common Windows activation and KMS errors.

FAQ

Why does slmgr /ato fail with 0x80070005?

Usually because the Command Prompt is not elevated: User Account Control prohibits activation processes in a non-elevated window. Right-click Command Prompt, select Run as administrator and run slmgr again.

What is event 8229 with error code 0x80070005?

A Security-SPP warning, the rules engine failed to perform one or more scheduled actions, with Path C:\Windows\System32\SLUI.exe. With activation error 0x80070005 on a domain-joined computer, Microsoft says the SELF account lacks the correct DCOM permissions.

How do I restore SELF DCOM permissions?

Run dcomcnfg, open Component Services, Computers, My Computer Properties, COM Security, Edit Default under Access Permissions, add SELF if missing, allow Local Access and Remote Access, then restart the computer.

What causes activation error 0x8007000D?

The data is invalid. Microsoft says the permissions for the System account on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root or one of its subkeys were changed from the default Full Control.

How do I fix 0x8007000D?

Give the System account at least Enumerate Subkeys permission on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root and its subkeys. Back up the registry first.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.