How to Fix the Windows Activation Error 0xC004F012
The error code 0xC004F012 pops up when the users try to activate their Windows. The error code is accompanied by the statement, ‘We can’t activate windows on this device because you don’t have a valid digital license or product key.’
This error is typically caused due to a missing or corrupt licensing repository and sometimes can also pop up after major upgrades, which makes Windows lose its activation status. Below, we have discussed several troubleshooting methods that you can try to resolve this issue. Proceed with the one that fits your situation the best.
1. Run System Scans
The first thing that we suggest you do is to rule out any corruption issues in the system that might be causing the problem. For this, we will be using the SFC and DISM tools.
Microsoft developed both these utilities to scan the system for errors. SFC works by scanning the protected system and replacing the corrupt ones with healthier ones. On the other hand, the DISM tool is responsible for repairing a corrupt system image.
Follow, How to Run SFC Scan.
After that, you can follow, How to Run a DISM Repair in Windows.
Head over to this guide to run a system scan. In case that does not fix the issue, you can proceed with the next troubleshooting methods in this guide.
2. Rebuild Tokens
Rebuilding the Activation Token files or Token.dat files can also fix the issue at hand, as they might be corrupted or faulty.
Here is how you can try doing that as well:
- Launch File Explorer and navigate to the following location:
C:\Windows\System32\SPP\Store\2.0 directory
- Locate the tokens.dat file and right-click on it.
- Choose Rename from the context menu.
- Rename the file to tokens.old.
- Once done, press the Win + R keys together to open Run.
- Type cmd in Run and click Ctrl + Shift + Enter to open Command Prompt with administrative rights.
- Alternatively, you can also type cmd in Windows search and click Open.
- Click Yes in the User Account Control prompt.
- Type the following command in the Command Prompt window and hit Enter to execute it:
net start sppsvc
- Now, execute this command:
cscript.exe slmgr.vbs /rilc
- Restart your device twice.
- Upon reboot, press the Win + I keys together to open the Settings app.
- Choose System > Activation.
- Expand the Activation state option and click on Troubleshoot. Wait for the activation troubleshooter to scan the system for issues and fix them.
Hopefully, the activation error will be resolved once this is done.
3. Restart the Software Protection Service
System services and other similar components are vital in helping your system function as it is supposed to.
For your system to finish the activation process successfully, the Software Protection service must be running properly. If it is acting up, you are likely to face the issue. Fortunately, the fix is easy; in most cases, restarting the service should fix the problem.
Here is how you can do that:
- Press the Win + R keys together to open Run.
- Type services.msc in Run to hit Enter.
- In the Services window, locate the Software Protection service and right-click.
- Choose Properties from the context menu.
- Click on the Stop button in the Properties dialog.
- Wait for a few seconds and hit Start again.
- Expand the dropdown for Startup type and choose Automatic.
- Click Apply > OK to save the changes.
Once done, check if the issue is resolved.
4. Use Command Prompt to Activate
Alternatively, you can also use the Command Prompt to activate Windows 11 as well.
Here is how you can try that as well:
- Type cmd in Windows search and click on Run as administrator.
- Click Yes in the User Account Prompt.
- Type the following command in cmd and hit Enter to execute it. Replace ‘Product key’ with your original key:
slmgr.vbs.ipk <product key>
- Now, execute this command:
slmgr.vbs/ato
- Once done, check if the issue is resolved.
5. Use Your Phone to Activate
You can also call Microsoft to activate your Windows.
Follow these steps to proceed:
- Press the Win + R keys together to open Run.
- Type Slui 4 in Run and click Enter.
- Expand the dropdown for Select your country or region and choose your country.
- Click Next.
- Now, call the toll-free number for your country and note down the confirmation ID you are given.
- Then, click on Enter confirmation ID.
- Type this ID in the dialog on your screen and click Activate Windows.
6. Clean Install Windows
If none of the methods have worked for you and you are still encountering the problem, then we suggest you move forward with a clean install.
When you clean install an operating system, you erase the entire hard drive and then install the operating system again. In a clean install, an operating system is put on a brand-new computer, and an old operating system is replaced or upgraded.
Head over to this guide to proceed with a clean install. Hopefully, it will resolve the issue for you.