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
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.
| Symptom | Cause | Fix |
|---|---|---|
| 0x80070005 Access denied, slmgr run from a normal prompt | UAC prohibits activation processes in a non-elevated Command Prompt | Right-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 permissions | dcomcnfg, COM Security, Edit Default (Access Permissions): allow SELF Local Access and Remote Access, restart |
| 0x8007000D The data is invalid, with slmgr -dlv or slmgr -ato | Permissions for SYSTEM changed on Enum\Root or a subkey | Give SYSTEM at least Enumerate Subkeys on Enum\Root and its subkeys |
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
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.
dcomcnfg and open Component Services.SELF, Check Names, OK.Microsoft's article applies to all versions of Windows Server and Windows client.
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*'
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.
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.
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.
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.
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.
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.
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.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.