Skip to content

Est. 2011ยทMicrosoft Partner 7033487ยทDelivery under 3 minยทSupport 7 days a week

Your vault is empty.

License Error 0xC004F051

0xC004F051: Windows Reports the Key as Blocked, Not Merely Wrong

11 min read Updated October 5, 2026 Windows Activation & Licensing

Recommended fix

Windows 11 Pro Retail license

Original price was: 25,00 €.Current price is: 14,99 €.

Fix It Now

Fix it now

Microsoft documents 0xC004F051 as the Software Protection Service reporting the product key is blocked, and states the block is held on the activation server. Nothing on your computer holds it, so nothing on your computer clears it. The documented remedy is a different key.

Elevated Command Prompt. Run under cscript so you can read the code rather than dismiss a dialog

cscript //nologo %windir%\system32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript //nologo %windir%\system32\slmgr.vbs /ato
cscript //nologo %windir%\system32\slmgr.vbs /dli
  1. Confirm which code you actually have. A key that will not install at all is a different problem from one that installs and is then refused.
  2. Prove the machine is healthy by installing a different key you know is good. If that one activates, only the original key is affected.
  3. Gather the purchase evidence for the blocked key: invoice, order reference and whatever licence statement came with it.
  4. If the key came from a volume agreement, speak to whoever administers that agreement before doing anything else.

Do not clear the old key with slmgr /upk until the replacement is in your hand. Microsoft documents that the system enters the Unlicensed state after the next restart, so a machine sitting in a grace period loses that state for nothing.

If a replacement key activates, you can stop here. If you want to establish why the first one was blocked, or you think the block is a mistake, the next section covers both.

Why it happens

Microsoft publishes two codes for a blocked key and they sit on opposite sides of the exchange. 0xC004F051 is the local Software Protection Service reporting that the product key is blocked, and the documented cause is that the key is blocked by Microsoft on the activation server. 0xC004C003 is the activation server saying the same thing directly. The documented remedy for both is identical and short: obtain a new key, install it, activate.

That is the whole reason the usual repair sequence is wasted effort here. Rebuilding the token store, running the troubleshooter, reinstalling Windows, resetting the licensing service – none of them touch a flag recorded against a key in Microsoft’s records. If the key installs without error and only activation fails, everything local is already working correctly and you are looking at a decision that was made elsewhere.

The companion codes in this record are weaker evidence than v1 guidance usually suggests, and it is worth being straight about that. 0xC004C00E and 0xC004C00F appear on Microsoft’s consumer error list, but in the general group meaning the key cannot be used to activate Windows, the activation servers were busy, or a free upgrade was never activated after a reinstall. They are not published as blocked-key codes. 0xC004C002 and 0x803FA066 are not published at all.

The key was resold outside the terms it was issued under

You have this one if The key was cheap, arrived as bare text with no licence documentation, and worked for a while before being refused.

  1. Record the exact code and the date, so you know when the entitlement stopped working.
  2. Ask the seller for the licence statement that proves your right to use it. A genuine supply chain produces one.
  3. Do not reinstall Windows hoping to reset anything. The block is not stored on your computer.
  4. Replace the licence with one you can document.

A block applied to a bulk-resold key affects everyone holding a copy, which is why these failures often arrive in waves across an office rather than one machine at a time.

The purchase behind the key was reversed

You have this one if The key stopped working shortly after a refund, a chargeback or a cancelled subscription somewhere in the chain.

  1. Check your own payment records first, including an expired card that may have failed a renewal.
  2. If someone else in the organisation made the purchase, confirm it was not refunded or disputed.
  3. Where the purchase was legitimate and completed, go back to the seller with the order reference and ask them to reinstate or replace it.

The key is one of the widely published ones

You have this one if The key can be found on the open internet, or it arrived by way of a key generator or an activation tool.

  1. Remove it: slmgr /upk, then slmgr /cpky to clear it from the registry – but only once you have a replacement.
  2. Look for whatever installed it and remove that too. These tools commonly leave services and scheduled tasks behind.
  3. Install a key you hold a licence for and activate normally.

A machine activated by a third-party tool has usually had more than its licensing modified. If you did not build it yourself, treat the whole installation with suspicion.

The key belongs to an agreement you are no longer covered by

You have this one if The machine came from a previous employer, a client or a project, and the licences have since been reassigned.

  1. Confirm with the agreement holder whether the key is still allocated to this device.
  2. If it is not, remove it with slmgr /upk followed by slmgr /cpky.
  3. Install a licence held by whoever owns the computer now.

Full reference

Telling a block apart from the things it resembles

What you observe What it points at
The key will not install with slmgr /ipk at all Not a block. The key is mistyped, or wrong for this edition or product
The key installs, activation is refused instantly and consistently A refusal recorded against the key itself
Activation fails only from one network A proxy, firewall or inspection problem, not a licensing one
A different key activates the same machine The computer, the licence store and the network are all healthy
The key came from an employer or a volume agreement The agreement holder may have retired or reassigned it
The code changes to something else after a day Not a block. Something transient was in the way

The codes Microsoft actually publishes for this

Code Documented meaning Where the decision sits
0xC004F051 The Software Protection Service reports that the product key is blocked Recorded on the activation server, reported locally
0xC004C003 The activation server determined the specified product key is blocked On the server
0xC004C020 The Multiple Activation Key has exceeded its limit On the server, and it is a count rather than a block

That last row matters more than it looks. A MAK that has run out of activations is not blocked, it is spent, and the documented route is to contact the Microsoft licensing activation centre for more activations rather than to buy a replacement key. If your code is 0xC004C020 rather than 0xC004F051, you are reading the wrong article and you may not need to spend anything.

Removing a blocked key safely

The commands below remove the current product key. Microsoft documents that the system enters the Unlicensed state after the next restart. Note the key you are removing, and have the replacement ready before you start.

cscript //nologo %windir%\system32\slmgr.vbs /upk
cscript //nologo %windir%\system32\slmgr.vbs /cpky
cscript //nologo %windir%\system32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript //nologo %windir%\system32\slmgr.vbs /ato
cscript //nologo %windir%\system32\slmgr.vbs /dli

/cpky is worth including rather than skipping. Microsoft documents it as removing the product key from the registry so that it cannot be recovered from there, which is standard practice after a retail key has been applied. It does not deactivate anything.

What happens to the machine while it is unlicensed

  • Windows keeps booting, applications keep running and security updates keep arriving. The block is a licensing state, not a kill switch.
  • Personalisation settings in Settings are locked and a watermark appears on the desktop.
  • Nothing about your files is at risk from the block itself. If an activation tool put the key there rather than you, the tool is the thing to worry about.
  • There is no time limit that makes this worse. You can take a week to sort the licence out.

If you think the block is a mistake

Only whoever holds the entitlement can raise it, and realistically only where you bought directly from Microsoft or from a reseller who can escalate on your behalf with proof of purchase. Keep the invoice, the order reference and the exact code and date. A key bought from a marketplace listing with no paperwork leaves nobody positioned to make that case, which is the practical difference between the two ways of buying.

When a licence is the actual fix

When the licensing service reports a key as blocked, the entitlement behind it has been withdrawn deliberately, and Microsoft’s own documented remedy is to obtain a new key and activate with that. No reinstall, no repair and no call to the machine’s manufacturer changes it, because nothing about the decision lives on your computer. Arco supplies Windows 11 Pro retail keys with an invoice and a licence statement you can produce in an audit, and can confirm the edition your installation needs before you order. If your code turns out to be 0xC004C020 rather than 0xC004F051, tell us – that one is an activation count and is handled by Microsoft’s activation centre, not by buying again.

Every code this article covers

Code What it points at Source
0xC004F051 The Software Protection Service reports that the product key is blocked. The block is held on the activation server; the documented remedy is a new key Microsoft Learn
0x803FA066 Reported by the Settings activation client in the same circumstances. No published meaning, so treat it as a symptom and diagnose with the code above not published by the vendor
0xC004C002 Raised during the licensing exchange. No published meaning; it is not published as a blocked-key code not published by the vendor
0xC004C00E Listed by Microsoft in the general group meaning the key cannot be used to activate Windows, the activation servers were busy, or a free upgrade was never activated after a reinstall. Not published as a block Microsoft Support
0xC004C00F Listed in the same general group as 0xC004C00E. Not published as a block, so confirm with 0xC004F051 or 0xC004C003 before concluding the key is flagged Microsoft Support

Confirm the fix worked

  1. slmgr /dli shows the last five characters of the replacement key, not the blocked one.
  2. Licence Status reads Licensed.
  3. slmgr /xpr reports permanent activation rather than a remaining period.
  4. Settings > System > Activation still reports Windows as active after a reboot.

Questions people ask about this

Can a blocked key ever be unblocked?

Only by whoever holds the entitlement, and realistically only if the block was a mistake. If you bought from a legitimate reseller and can show the invoice, ask them to take it up with their supplier. If the key came from a marketplace listing with no paperwork, there is nobody to ask.

Does reinstalling Windows clear it?

No. Microsoft documents the block as held on the activation server, not in any file on your computer. A clean installation presents exactly the same key and receives exactly the same refusal.

How can I tell a block from an invalid key?

Install the key. If slmgr /ipk itself fails, the key is invalid for this installation – a format, product or edition problem, and usually fixable. If it installs and activation is then refused with 0xC004F051 or 0xC004C003, the key is flagged.

Is my data at risk?

Not from the block. Windows drops into notification mode with a watermark and locked personalisation, and files, applications and updates keep working. If an activation tool installed the key rather than you, that tool is the actual risk.

How do I avoid buying a key that gets blocked later?

Buy from a supplier that issues an invoice naming the product and the licence type, and keep it. Treat a price far below the market as a warning rather than a bargain, and be careful with keys sold as spare seats out of somebody else’s agreement.

Related error codes

Was this article helpful?

Your feedback helps us improve our documentation.

Related articles

Free Fix 0x80070422 and 0x80070426: The Software Protection Service Will Not Start License Error 0xC004C003: The Activation Server Has Blocked This Product Key License Error 0xC004F064: Non-Genuine Grace Period Expired and Windows Now Nags Free Fix 0xC004F311 and 0xC004F312: Soft Token or Exportable Key Refused
โ† Back to Knowledge Base