Windows activation error 0xC004F012, "The Software Licensing Service reported that the call has failed because the value for the input key was not found"

This code means the licensing service on the PC could not find the value it expected when it tried to process the activation request. In practice the licensing store files are damaged or out of step, often after an interrupted update, a failed upgrade, or a disk error. The key itself is usually fine, so the fix is to repair the licensing service and its stored data, then try activating again.

The fix, in order

  1. Run the Activation troubleshooter first. Go to Settings > System > Activation and select Troubleshoot. On Windows 11 it can also be started from the Get Help app. If it fixes the license state, you are done.
  2. Restart the Software Protection service. Press Win + R, type services.msc, find Software Protection, right-click it, and choose Restart. Then retry activation at Settings > System > Activation.
  3. Rebuild the licensing store file. In an admin Command Prompt, stop the service with net stop sppsvc, then rename the tokens file with ren %windir%\System32\spp\store\2.0\tokens.dat tokens.old. Restart the PC, and Windows will rebuild the file. Then run slmgr.vbs /ato in an admin Command Prompt to try activating again.
  4. Repair Windows system files. In an admin Command Prompt, run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth, and restart the PC when both finish.
  5. Re-enter the product key. Go to Settings > System > Activation > Change product key and type the 25-character key again, or in an admin Command Prompt run slmgr.vbs /ipk <product key> followed by slmgr.vbs /ato.
  6. Install pending Windows updates and restart. An update can replace the damaged licensing files, so check Settings > Windows Update, install anything waiting, and reboot before trying activation again.
Only rename the tokens.dat file named in step 3, and do not delete other licensing files. Never use an activator, loader, or crack to get past this error. Those tools can damage the licensing store further and install malware, and the activation they provide is not genuine.

If it still happens

If the troubleshooter, the tokens.dat rebuild, and the system file repair all fail, the licensing store may be damaged beyond a quick repair. Contact Microsoft Support through the Get Help app or support.microsoft.com, and mention error 0xC004F012 and the steps already tried. A repair install that keeps your files is the usual next step they will suggest.

Common questions

What causes 0xC004F012? Damaged or missing licensing store data, often after an interrupted update, a failed upgrade, or a disk error. The Software Licensing Service cannot find the value it expects, so the activation call fails before the key is even checked.

Will renaming tokens.dat lose my license? No. Windows rebuilds the file and re-reads your product key and digital license on the next activation attempt. Keep the renamed copy until activation succeeds, so you can restore it if anything goes wrong.

Is this the same as a blocked key? No. A blocked key is error 0xC004C003, where the activation server refuses the key itself. This code means the licensing service on the PC could not complete the lookup, so the key was never properly checked.

Related errors

Windows activation error 0x803F7001 · Windows activation error 0xC004F213 · Windows activation error 0xC004C003 · Windows Update error 0x80070005

Was this helpful?