How to Fix Windows Activation Error 0xC004F012
How Can We Help?
Rebuild the Tokens.dat File
The tokens.dat file is a digitally signed file that stores most of the Windows and Office activation files. Sometimes, the tokens.dat file might get corrupted, leading to Windows activation errors like 0xC004F012. When you are troubleshooting similar problems, you can consider rebuilding the tokens.dat file. Follow these guidelines:
Step 1. Type run in the search bar and hit Enter to open the Run dialog.
Step 2. Type services.msc and hit Enter to launch Services.
Step 3. In the service list, scroll down to find Software Protection > right-click on it > and select Stop.
Step 4. Press Win + E to open File Explorer. Navigate to: C:\Windows\System32\SPP\Store\2.0 to find the tokens.dat file.

Step 5. Rename this file to tokens.old and quit File Explorer.
Step 6. Run the following commands one by one in an elevated Command Prompt:
net start sppsvc
cscript.exe slmgr.vbs /rilc
Step 7. After the process completes, restart your computer to see if error code 0xC004F012 Windows 10/11 is gone.
