What Does Error 0xC004F012 Mean
Error 0xC004F012 occurs when attempting to activate Windows and indicates that the Software Licensing Service cannot find a valid license. The full error text in English is: "0xC004F012: The Software Licensing Service reported that the license could not be found." On a Russian system, it may be displayed as "Служба лицензирования сообщила, что лицензия не найдена" (The licensing service reported that the license was not found).
This error typically appears when running activation commands (e.g., slmgr /ato), in Settings → Update & Security → Activation, or when using corporate activation methods (KMS). It prevents activation from completing, limiting access to certain system features like personalization.
Causes
Error 0xC004F012 can be triggered by several specific issues:
- Corrupted license data — license files or registry entries (e.g., in
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform) are damaged or missing. - KMS server issues — in corporate environments, the KMS server is unavailable, misconfigured, or not responding to activation requests.
- Digital license reset — after significant hardware changes (e.g., motherboard replacement), the digital license tied to the hardware may have been reset.
- Invalid or already-used product key — the manually entered key does not match the Windows edition or has already been activated on another device.
- Temporary Microsoft activation server outages — KMS or MAK servers are temporarily unavailable, preventing activation completion.
Solutions
Method 1: Use the Activation Troubleshooter
Windows includes a built-in tool to diagnose and fix activation problems. This is the simplest method, which automatically detects and attempts to resolve common issues.
- Open Settings (Win + I).
- Go to Update & Security → Activation.
- Click the Troubleshoot button (if available).
- Follow the on-screen instructions. The tool may automatically apply a digital license or prompt you to enter a product key.
- After completion, restart your computer and check the activation status.
💡 Tip: If the "Troubleshoot" button is inactive, ensure you are logged in with administrator privileges and connected to the internet.
Method 2: Reset the License via Command Prompt
This method manually clears the current license and re-activates Windows. It works for most cases, including digital licenses and KMS.
- Launch Command Prompt or Windows PowerShell as an administrator (Win + X → select the appropriate item).
- Run the following commands in order:
This command removes the current product key from the system.slmgr /upk
Clears the key cache from the registry, preventing reuse of invalid keys.slmgr /cpky
Resets the license state (a restart may be required). Optional but helpful for serious issues.slmgr /rearm
Install a new product key. Replaceslmgr /ipk <your_product_key><your_product_key>with your Windows key (e.g.,VK7JG-NPHTM-C97JM-9MPGT-3V66Tfor Pro). If you have a digital license, you can skip this step.
Activates Windows via the KMS server or Microsoft servers.slmgr /ato - After running all commands, restart the computer and check activation in Settings.
⚠️ Important: If you do not know the product key, check the sticker on the computer case (for OEM licenses) or the email from the seller. For digital licenses, no key is required—the system will activate automatically after the reset.
Method 3: Phone Activation
If online activation fails (e.g., due to network or KMS issues), use phone activation. This method is especially useful for corporate licenses or in environments with limited internet access.
- Open Command Prompt as an administrator.
- Enter the command:
The phone activation wizard will open.slui 4 - Select your country and region from the list, then click Next.
- Call the provided toll-free Microsoft support number. The automated system will request your Installation ID (displayed on the screen).
- Enter the Installation ID by phone, following the prompts. The system will provide a Confirmation ID.
- Enter the received Confirmation ID in the wizard window and click Activate.
- After successful activation, close the window and restart the computer.
Method 4: Check and Configure the KMS Server (for Corporate Environments)
In corporate networks, activation often occurs through a KMS server. Error 0xC004F012 may indicate problems with its availability or configuration.
- Ensure the computer can connect to the KMS server. Check network connectivity and server availability (typically port 1688).
- In an administrator Command Prompt, run:
Replacenslookup <KMS_server_name><KMS_server_name>with your KMS server address (e.g.,kms.example.com). If DNS does not resolve the name, use the IP address. - Explicitly specify the KMS server for the system:
slmgr /skms <KMS_server_name>:1688 - Try activating again:
slmgr /ato - If the KMS server is unconfigured or outdated, contact your system administrator to update or replace it.
Method 5: System Restore or Windows Reset
If all previous methods fail, system file or license corruption may be irreversible. In this case, use restore or reset.
- Restore to a previous point:
- Open Control Panel → Recovery → Open System Restore.
- Select a restore point created before the error appeared.
- After restoration, try activation again.
- Reset Windows while keeping files:
- Go to Settings → Update & Security → Recovery.
- Click Reset this PC and choose Keep my files.
- Follow the instructions. After the reset, Windows will attempt to auto-activate via the digital license.
- If activation fails, repeat Method 2 or Method 3.
⚠️ Important: Back up important data before resetting. Resetting will remove installed programs and settings.
Prevention
To avoid recurrence of error 0xC004F012, follow these recommendations:
- Regularly update Windows — install the latest updates, which may fix licensing bugs.
- Avoid frequent hardware changes — replacing key components (motherboard, CPU) can reset the digital license. Be prepared to re-activate in such cases.
- For corporate environments — ensure the KMS server is stable and has sufficient activation counts (minimum 25 for clients, 5 for servers).
- Avoid unlicensed keys — use only official licenses from Microsoft or authorized sellers.
- Create restore points before major system changes — this allows quick rollback if licensing issues arise.
- Check internet connectivity — online activation requires a stable connection. When using KMS, ensure port 1688 is open in the firewall.