Windows 0xC004F012Medium

Windows Activation Error 0xC004F012: Causes and Solutions

The article explains Windows error 0xC004F012, which occurs due to license issues, and provides step-by-step instructions for resolution, from simple to complex.

Updated at February 17, 2026
10-15 minutes
Medium
FixPedia Team
Применимо к:Windows 10Windows 11Windows Server 2016Windows Server 2019

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:

  1. Corrupted license data — license files or registry entries (e.g., in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform) are damaged or missing.
  2. KMS server issues — in corporate environments, the KMS server is unavailable, misconfigured, or not responding to activation requests.
  3. Digital license reset — after significant hardware changes (e.g., motherboard replacement), the digital license tied to the hardware may have been reset.
  4. Invalid or already-used product key — the manually entered key does not match the Windows edition or has already been activated on another device.
  5. 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.

  1. Open Settings (Win + I).
  2. Go to Update & Security → Activation.
  3. Click the Troubleshoot button (if available).
  4. Follow the on-screen instructions. The tool may automatically apply a digital license or prompt you to enter a product key.
  5. 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.

  1. Launch Command Prompt or Windows PowerShell as an administrator (Win + X → select the appropriate item).
  2. Run the following commands in order:
    slmgr /upk
    
    This command removes the current product key from the system.
    slmgr /cpky
    
    Clears the key cache from the registry, preventing reuse of invalid keys.
    slmgr /rearm
    
    Resets the license state (a restart may be required). Optional but helpful for serious issues.
    slmgr /ipk <your_product_key>
    
    Install a new product key. Replace <your_product_key> with your Windows key (e.g., VK7JG-NPHTM-C97JM-9MPGT-3V66T for Pro). If you have a digital license, you can skip this step.
    slmgr /ato
    
    Activates Windows via the KMS server or Microsoft servers.
  3. 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.

  1. Open Command Prompt as an administrator.
  2. Enter the command:
    slui 4
    
    The phone activation wizard will open.
  3. Select your country and region from the list, then click Next.
  4. Call the provided toll-free Microsoft support number. The automated system will request your Installation ID (displayed on the screen).
  5. Enter the Installation ID by phone, following the prompts. The system will provide a Confirmation ID.
  6. Enter the received Confirmation ID in the wizard window and click Activate.
  7. 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.

  1. Ensure the computer can connect to the KMS server. Check network connectivity and server availability (typically port 1688).
  2. In an administrator Command Prompt, run:
    nslookup <KMS_server_name>
    
    Replace <KMS_server_name> with your KMS server address (e.g., kms.example.com). If DNS does not resolve the name, use the IP address.
  3. Explicitly specify the KMS server for the system:
    slmgr /skms <KMS_server_name>:1688
    
  4. Try activating again:
    slmgr /ato
    
  5. 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.

  1. 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.
  2. 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.

F.A.Q.

What does error 0xC004F012 mean in Windows?
Can I fix error 0xC004F012 without a product key?
Why does error 0xC004F012 occur after a Windows update?
Is a Windows reinstall necessary for error 0xC004F012?

Hints

Open Command Prompt as Administrator
Remove the current product key
Clear the key cache
Install a new product key (if required)
Activate Windows

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community