Activation fails with 0xC004E015 SL_E_EUL_CONSUMPTION_FAILED or 0xC004E002, the license store contains inconsistent data? tokens.dat is corrupted. Stop sppsvc, rename tokens.dat, slmgr /rilc, restart twice, reinstall the key.
Home › Guides › Activation errors 0xC004E015 and 0xC004E002
Last updated 22 November 2026
0xC004E015 (SL_E_EUL_CONSUMPTION_FAILED) and 0xC004E002 ("the license store contains inconsistent data") both point at the same file: tokens.dat, the Software Protection license store. Microsoft says 0xC004E015 happens because C:\Windows\System32\spp\store\2.0\tokens.dat is corrupted, and 0xC004E002 because the file is corrupted or has the wrong permissions. The fix is the same: stop the Software Protection service (sppsvc), rename tokens.dat to tokens.bar, start the service, reinstall the license files with slmgr /rilc, restart the computer twice, then put the product key back with slmgr /ipk and activate.
From slmgr /ato on a damaged store:
Error: 0xC004E015 On a computer running Microsoft Windows non-core edition, run 'slui.exe 0x2a 0xC004E015' to display the error text.
Microsoft's 0xC004E002 article (KB 978305) lists two messages for the same cause, so a blocked-key code can also be a store problem:
| Code | Message | What it means here |
|---|---|---|
| 0xC004E015 | SL_E_EUL_CONSUMPTION_FAILED | tokens.dat is corrupted; rebuild it |
| 0xC004E002 | The Software Licensing Service reported that the license store contains inconsistent data. | tokens.dat is corrupted or has incorrect permissions |
| 0xC004C003 | The activation server determined that the specified product key has been blocked. | Listed in the same article as a symptom of the tokens.dat problem; if the store is fine, the MAK really is blocked |
If 0xC004C003 is still there after a rebuild and a fresh key install, treat it as a blocked key: see activation errors 0xC004C003 and 0xC004C008.
The folder and the service name depend on the Windows version. These are the paths from Microsoft's article on rebuilding tokens.dat (KB 2736303):
| Windows version | Folder | Service |
|---|---|---|
| Windows 10, Windows Server 2016 and later | %windir%\system32\spp\store\2.0 | sppsvc |
| Windows 8.1, Windows Server 2012 R2 | %windir%\system32\spp\store\2.0 (on 8.1 upgraded from 8, possibly still %windir%\system32\spp\store) | sppsvc |
| Windows 8, Windows Server 2012 | %windir%\system32\spp\store | sppsvc |
| Windows 7, Windows Server 2008 R2 (and 2008) | %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform | sppsvc (slsvc on Windows Server 2008) |
Open an elevated Command Prompt (right-click Command Prompt, Run as administrator). On Windows 10, Windows Server 2016 and later:
net stop sppsvc cd %windir%\system32\spp\store\2.0 ren tokens.dat tokens.bar net start sppsvc cscript.exe %windir%\system32\slmgr.vbs /rilc
If net stop asks whether to continue, type Y. Then restart the computer twice. Renaming instead of deleting keeps the old file as tokens.bar, so you can put it back if you need to.
Windows creates a fresh tokens.dat. Now reinstall the product key, from the same elevated prompt or with Change product key in System properties, and activate:
cscript.exe %windir%\system32\slmgr.vbs /ipk <product key> cscript.exe %windir%\system32\slmgr.vbs /ato
Microsoft's warning: never use /upk to uninstall a product key. To replace a key, install the new one over it with /ipk.
On a KMS client, Microsoft says to reapply the KMS client setup key (GVLK) for your edition and activate again. The keys are on Microsoft's KMS client activation and product keys page, for example Windows Server 2022 Standard:
cscript c:\windows\system32\slmgr.vbs /ipk VDYBN-27WPP-V4HQT-9VMD4-VMK7H cscript c:\windows\system32\slmgr.vbs /ato
For a MAK or retail installation, use your own key with /ipk instead.
KB 978305 tries a permission reset before the rebuild, but its icacls lines only cover the old folders (Windows Vista and Windows Server 2008, Windows 7 and Windows Server 2008 R2, and a WSLicense folder for Windows 8 and 8.1). For Windows 7 and Windows Server 2008 R2 it is:
icacls %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform /grant "BUILTIN\Administrators:(OI)(CI)(F)" "NT AUTHORITY\SYSTEM:(OI)(CI)(F)" "NETWORK SERVICE:(OI)(CI)(F)"
and the expected result on tokens.dat is NT AUTHORITY\SYSTEM:(I)(F), BUILTIN\Administrators:(I)(F) and NT AUTHORITY\NETWORK SERVICE:(I)(F). The article gives no line for Windows 10 or Windows Server 2016 and later, so on current versions the rebuild above is the documented fix. To just look at the current permissions without changing anything, run icacls with only the path:
icacls %windir%\system32\spp\store\2.0\tokens.dat
This is my PowerShell equivalent of the Command Prompt steps for Windows 10, Windows Server 2016 and later (standard cmdlets, run as administrator, then restart twice):
Stop-Service sppsvc -Force Rename-Item "$env:windir\System32\spp\store\2.0\tokens.dat" tokens.bar Start-Service sppsvc cscript.exe "$env:windir\System32\slmgr.vbs" /rilc
For Azure VMs, Microsoft points to its troubleshooting tools for Windows activation issues on Azure virtual machines.
Look up Security-SPP events such as 8198 and 12288 in the Windows Event ID Lookup, copy the slmgr and sppsvc lines from the PowerShell Cheat Sheet, pull error codes out of slmgr output and event text with the Regex Tester, check which subnet an affected machine is on with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of the NIC on an affected VM with the MAC Vendor Lookup. Related guides: activation errors 0xC004C003 and 0xC004C008, activation error 0x80070005 access denied, KMS activation error 0xC004F074 and common Windows DNS Server and DHCP Server errors.
Every Windows activation and KMS error code and event in one place: common Windows activation and KMS errors.
Microsoft says 0xC004E015 (SL_E_EUL_CONSUMPTION_FAILED) occurs because the license store file C:\Windows\System32\spp\store\2.0\tokens.dat is corrupted. Rebuild tokens.dat and activate again.
The Software Licensing Service reported that the license store contains inconsistent data. Microsoft says tokens.dat is corrupted or has incorrect permissions.
In an elevated prompt run net stop sppsvc, change to the store folder, ren tokens.dat tokens.bar, net start sppsvc and cscript slmgr.vbs /rilc, then restart the computer twice and reinstall the product key with slmgr /ipk.
In %windir%\system32\spp\store\2.0. Windows 8 and Windows Server 2012 use %windir%\system32\spp\store, and Windows 7 and Windows Server 2008 R2 use the SoftwareProtectionPlatform folder under the NetworkService profile.
Reapply the KMS client setup key for your edition with slmgr /ipk and run slmgr /ato. Microsoft says never to use slmgr /upk to uninstall a key; install the new key over the old one with /ipk.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.