Cart0

Guide · 6 min read

0xC004F038 Activation Error: KMS Count Is Insufficient

Updated

0xC004F038 Activation Error: KMS Count Is Insufficient

Short answer: The 0xC004F038 activation error says the KMS server's count is too low. KMS needs 25 Windows clients or 5 servers before it activates anyone. On a home PC, we'd swap the volume key for a retail or OEM key. On a company network, IT raises the count or moves to MAK.

The 0xC004F038 activation error comes from KMS, the activation system companies run on their own network. The server did answer. It just hasn’t seen enough computers yet to activate anyone. On a home PC we’d swap the volume key for a retail or OEM one; a company needs 25 clients or 5 servers.

Where Fix
Home PC Replace the volume key with your own retail or OEM key, then activate online
Company network Bring the KMS count up to 25 Windows clients or 5 servers, or switch small sites to MAK

The full message reads: “The count reported by your Key Management Service is insufficient. Please contact your system administrator.”

At home there’s no administrator to call. That’s the first clue: a home PC shouldn’t be asking a KMS server at all.

Got a different code on screen? Look it up in our error code lookup.

What the 0xC004F038 activation error stands for

A KMS host only starts activating once enough machines have asked. Microsoft built it for larger networks and set a floor.

What is being activated Minimum count on the host
Windows client editions 25
Windows Server 5
Office volume editions 5

Clients and servers add up in one counter. Virtual machines count like physical ones.

Until the floor is reached, every request gets the same polite refusal. The client then shows this code. Microsoft lists it in the activation error codes reference with one solution: add computers to the KMS pool.

Its consumer page adds two everyday reasons. An Enterprise key went onto Home or Pro, or a work device is away from the work network.

Causes of the 0xC004F038 activation error

Cause Detail
Volume key on a home PC Windows holds a KMS client key from volume media, a reused company image or a low-priced seller
New or small KMS site Fewer than 25 clients have contacted the host so far
Cloned machines PCs deployed from one image without generalizing share one client ID, so the host counts them as one
Clients preset to another host Some machines report to a different KMS host, and each host keeps its own count
Stale count The host forgets clients that haven’t renewed for 30 days
Lab or test network A handful of virtual machines never reaches the floor

How to fix the 0xC004F038 activation error

Start by finding out which kind of key Windows holds. The fix splits right there.

  1. Open Command Prompt as administrator and run the license information line; look for the channel in the description.
  2. On a home PC with a volume channel, install your own retail or OEM key for the same edition and activate.
  3. Clear any KMS host name that an old tool left on the PC.
  4. On a company PC, connect to the office network or VPN and activate again.
  5. On the KMS host, run the license information line and read the current count.
  6. If the count is stuck, reset the client ID on cloned machines, restart them and let them request activation.
  7. Run the activation line on enough clients until the count reaches the floor, then activate the first one again.
slmgr /dli
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /ato
slmgr /ckms
slmgr /dlv
slmgr /rearm
Line What it does
slmgr /dli On a client: shows the channel. On the host: shows the current count
slmgr /ipk Installs the key you type after it
slmgr /ato Asks for activation now
slmgr /ckms Clears a KMS host name set by hand
slmgr /dlv Shows the client machine ID, among other details
slmgr /rearm Resets the licensing state, which gives a cloned machine a fresh client ID after a restart
Table for the 0xC004F038 activation error on a home PC and on a company network: what the channel check shows, what to do and what comes next.
Illustration: on a home PC the volume key is replaced, on a company network the KMS count is raised.

On a home PC the Settings route works as well: Settings, System, Activation, Change product key.

Fixing the 0xC004F038 activation error on a home PC

You see the word VOLUME_KMSCLIENT in the first line’s answer? Then Windows carries a key that was never meant to activate outside a company.

Somebody’s KMS server replied, counted you in, and still had too few machines. We wouldn’t wait for that count to grow. It isn’t your server.

  • Have a key of your own already? Enter it and activate.
  • Bought a “cheap activation” that turned out like this? That was a volume key. Take it up with the seller.
  • No key at all? Then the PC needs one.

Ours are genuine and arrive instant to email: Windows 11 Pro and Windows 10 Pro. After activation the channel line reads RETAIL.

How the three channels differ is laid out in Retail vs OEM vs Volume license. For the Settings path, we’d open how to activate Windows 11.

Raising the KMS count on a company network

Here the code is often just a matter of patience. A new host activates nobody until client number 25 knocks.

Read the count on the host first. A number that climbs with each new PC is healthy; we’d simply keep deploying.

A number that sits at 1 or 2 while dozens of PCs are out there points to clones.

Check What to look for
Client machine ID on two PCs The same ID on both shows they came from one image that wasn’t generalized
KMS host name on the client A name set by hand may point to another host with its own count
Key Management Service log on the host Each request is logged with the client’s name and the count at that moment
Port 1688 Requests that never arrive can’t be counted

For clones, the lasting fix sits in the image. Run Sysprep with the generalize option before capturing it, so every copy gets its own ID.

Machines already deployed take the reset line and a restart. Then they count one by one.

Four-stage flow for raising the KMS count behind the 0xC004F038 activation error: read the count, find cloned machines, reset them, and let clients ask until the count reaches 25 clients or 5 servers.
Illustration: we read the count on the host, reset cloned machines and let clients request activation until the floor is reached.

Reading the KMS count behind 0xC004F038

The host keeps the numbers. The client only repeats what it was told.

On the host, the detailed view:

slmgr /dlv
  • Current Count: somewhere between 0 and 50, never higher.
  • It counts every machine that asked in the last 30 days, clients and servers together.
  • Zero? A freshly activated host, or nobody valid has called yet.
  • Stuck at 1 with a room full of PCs? Clones, almost always.

Why the cap at 50? The host caches twice the highest floor it has been asked for. Windows clients want 25, so 50. A network with only servers tops out at 10.

Event ID Where What it tells you
12288 Client, Application log The request went out, with the host name and port used
12289 Client, Application log The answer: an activation flag of 1 or 0, plus the count on the host at that moment
12290 Host, Key Management Service log Who asked: the client machine ID and the minimum count that client needs
12293 Host, Key Management Service log The host failed to publish its DNS records

A client with 12288 and no 12289 never heard back. Then it’s the network, not the count. And no 12290 on the host for that client? The request never arrived.

Two machines, one client machine ID in their 12290 entries? That’s the duplicate. Generalize the image, or reset those PCs.

One honest caveat on the reset line. Microsoft calls an image deployed without Sysprep unsupported, so we’d fix the image too.

0xC004F038 on Office volume editions

Office keeps its own count on the same host. The floor is lower: 5.

Same message, same cause. A volume Office with a KMS client key, asking a host that hasn’t seen five Office installs.

Office also has its own client machine ID. A Windows image generalized with Sysprep can still carry one Office ID for every copy, when Office wasn’t rearmed before capture.

Microsoft’s fix for the image: rearm Office before Sysprep, then capture without opening any Office app. Elevated prompt, Office folder first:

cd "C:\Program Files\Microsoft Office\Office16"
ospprearm.exe

32-bit Office on 64-bit Windows? Then the same path sits under the x86 Program Files folder. “Microsoft Office rearm successful” is the line you want.

On a deployed PC, the status check from that same folder:

cscript ospp.vbs /dstatus

At home it’s the same story as Windows. A volume Office with no company behind it. The way out? A retail edition such as Office Home and Business 2024 activates through your Microsoft account and never asks a KMS host. Reading the Office license status, step by step: our 0x4004F00C guide.

0xC004F038 on Windows 11 and Windows 10 Home or Pro

Microsoft’s consumer page names this case directly. An Enterprise key on Windows 11 Home or Pro shows 0xC004F038, or one of its neighbours: 0x8007232B, 0xC004F074, 0x8007007B.

So the code on a personal laptop is rarely about a count. It’s about a key that belongs to a company network.

  • Laptop from a former employer? It may still carry the company’s volume key. Ask that IT department, or install your own key.
  • Windows installed from volume media? Swap in a retail key for the same edition.
  • A “lifetime” key that turned into this? A volume key resold. The seller owes you a working one.

Windows 10 and Windows 11 behave the same here. Settings, System, Activation on 11. Update & Security on 10.

When the site is too small for KMS

Twelve PCs will never make 25. No setting changes that floor.

Option How it activates Good for
MAK Each PC activates once with Microsoft, online, or offline through Microsoft’s Product Activation portal Small sites, laptops that rarely see the office
Active Directory-based activation Domain-joined machines activate through the directory Domains of any size, since it has no minimum count
KMS Clients ask a host on the network and renew on their own 25 or more Windows clients, or 5 or more servers

For servers, our Windows Server 2022 activation guide covers the key types by edition. Evaluation copies go another way, and we wrote that up in activating Windows Server via DISM.

Codes that travel with it

Code What happened
0xC004F038 The KMS host answered, the count is too low
0xC004F074 No KMS host answered at all
0x8007232B No KMS host found in DNS
0x8007007B The same DNS failure under another number
0xC004F069 The key doesn’t fit the installed edition
0xC004C008 The key was used on more devices than allowed

On a home PC all of the KMS codes share one cure, the right kind of key. The rest are in our list of Windows 11 activation errors.

A wrong clock produces its own number. That one is 0x80072F8F.

Where these steps apply

System What applies
Windows 11 and Windows 10 in Pro, Enterprise and Education All client steps; KMS client keys exist for these editions
Windows 11 and Windows 10 Home Home has no KMS client key; with this code we’d check which edition is really installed
Windows Server 2016 to 2025 Client steps, plus the count check when the server is the KMS host
Office volume editions The same idea with a floor of 5, read with Office’s own licensing script

The public KMS client keys are listed on our generic keys page. They install an edition and don’t activate it outside a KMS network.

Common mistakes with the KMS count

  • Waiting for the count to grow on a home PC.
  • Pointing the PC at a public KMS server.
  • Capturing an image without generalizing it.
  • Running the reset line again and again; it has a limit.
  • Reading the count on a client and not on the host.
  • Planning KMS for a site with ten machines.

Terms used on this page

Term Meaning
KMS Key Management Service, activation inside a company network
KMS host The company server that answers activation requests
KMS count How many different machines contacted the host recently
KMS client key A public volume key that only works with a KMS host
Client machine ID The ID a host uses to tell one client from another
Sysprep Microsoft’s tool that prepares an installation for imaging
MAK Multiple Activation Key, a volume key that activates with Microsoft
Channel How a license was sold, shown as RETAIL, OEM or VOLUME

FAQ

What does 0xC004F038 mean?

Windows asked a KMS server for activation, and the server's count was too low. That's all the message says. Nothing is wrong with the PC. We'd read it as a server that hasn't seen enough machines yet.

How many computers does KMS need?

Microsoft sets the floor at 25 for Windows client editions and 5 for Windows Server. Clients and servers add up in one counter. Below that, every request is refused with this code.

Why do I get 0xC004F038 on my own PC at home?

Windows holds a KMS client key, from volume media, a company image or a low-priced key. A home PC has no KMS server of its own. We'd install a retail or OEM key for the same edition and activate online.

How do I check the KMS count?

Run the license information line of slmgr on the KMS host, not on the client. The answer includes the current count. We'd compare it with the number of machines that should have reported by now.

The count doesn't go up when I add PCs. Why?

Usually the PCs were cloned from one image without Sysprep's generalize step. They share one client machine ID, so the host counts them as one. We'd reset the ID on each clone and restart it.

Can I lower the KMS minimum?

No. The floor is fixed by Microsoft. For fewer machines, we'd use MAK keys, which activate each PC directly with Microsoft. Active Directory-based activation is the other route and has no minimum count.

Is a public KMS server a fix for 0xC004F038?

No. A public KMS server isn't licensed activation for your PC. It can vanish any day, and the tools around it often carry malware. We'd use a genuine key that fits your edition.

Office shows 0xC004F038 too. Same problem?

Same idea, lower floor. Office volume editions need a KMS count of 5 on the host. At home, a retail Office edition activates through your Microsoft account and skips KMS.