Fix Windows Activation Error 0xC004F074 Or 0x8007007B (2026)
Windows shows error 0xC004F074 or 0x8007007B when it tries to activate through a company activation server and cannot get an answer.
Microsoft’s activation help page ties both codes, plus 0xC004F038 and 0x8007232B, to a work device that is not connected to the workplace network or to a key that does not match your edition.
This guide explains each code, the steps for a PC that belongs to you, and the checks Microsoft lists for the people who run the activation server.
Quick answer: what to do for each code
| Code | Message | What Microsoft says to do |
|---|---|---|
| 0xC004F074 | No Key Management Service (KMS) could be contacted | Reconnect to the work network, or work through the Application log events listed below |
| 0x8007007B | DNS name does not exist | The PC cannot find the KMS record in DNS; check the network and DNS checks below |
| 0x8007232B | DNS name does not exist | Point the PC at the KMS host, or switch to a MAK key |
| 0xC004F038 | The count reported by your KMS is insufficient | The administrator must add computers to the KMS pool |
On a home PC, the quick fix is the last step in Microsoft’s list: enter your own 25-character key with Change product key.
What do these activation errors mean?
KMS stands for Key Management Service, the method many organizations use to activate Windows on company PCs.
A PC that activates this way has to reach the organization’s KMS host, usually found automatically through DNS.
Microsoft’s troubleshooting page says error 0xC004F074 appears when all the KMS host systems your client tries to contact return errors.
It says 0x8007007B and 0x8007232B appear when the KMS client cannot find the KMS server records in DNS.
For 0xC004F038, the page says the count on the KMS host is not high enough.
Why you may see it on a PC you own
Microsoft’s activation errors page lists these codes together with 0x8007232B and 0xC004F038 under two causes.
- Edition mismatch: an Enterprise key was entered on Windows 11 Home or Pro.
- Work device off the network: a PC set up by an employer is no longer connected to the workplace network.
Step 1: Check how your PC is activated
- Open Settings.
- Select System, then Activation.
- Read the activation state and the message under it.
To see the license details, open Command Prompt and run the commands below. Microsoft says neither one needs administrator rights.
| Command | What it shows |
|---|---|
slmgr.vbs /dli | License information for the installed edition |
slmgr.vbs /dlv | Detailed license information |
slmgr.vbs /xpr | The activation expiration date, mainly useful for KMS clients |
Step 2: If it is a work or school PC
Microsoft says to check your work network settings or contact your organization.
- Connect the PC to the workplace network, or to the company VPN if your employer provides one.
- Check Settings, System, Activation again.
- If the error returns, send your IT support person the exact code and the message on screen.
Do not install a key from the internet on a managed PC, because the organization controls its licensing.
Step 3: If it is your own PC
Microsoft’s page says that without a support person you should enter your 25-character key again, which may need admin permission.
- Open Settings and select System, then Activation.
- Select Change product key.
- Enter the key that matches your edition, such as Home or Pro, and select Next.
Our guide on finding your Windows 11 product key shows where the key usually is.
If Windows later reports that the key does not match your edition, see Windows 11 not activated and the Activate Windows watermark.
After a motherboard swap, use the reactivation steps for a hardware change instead.
Step 4: Switch from KMS to a MAK key
Microsoft lists a MAK, or Multiple Activation Key, as the option when you cannot use KMS.
- Press the Windows key and X together, then open the Command Prompt as administrator.
- Run
slmgr -ipkfollowed by your MAK key. - Run
slmgr.vbs /atoto try activation again.
Microsoft says that if you do not have a KMS host, you can get and install a MAK, then try activating again.
Only use a key your organization or Microsoft issued to you.
Step 5: Point the PC at a KMS host
If your administrator gives you the KMS host name, Microsoft’s command sets it by hand.
| Command (elevated prompt) | Effect |
|---|---|
slmgr.vbs /skms host-name:1688 | Sets the KMS host and turns off automatic detection |
slmgr.vbs /ato | Tries activation against that host |
slmgr.vbs /ckms | Clears the host and restores automatic discovery |
Microsoft says /skms and /ckms both require an elevated Command Prompt.
The page also says the default KMS port is TCP 1688, so a firewall on either side has to allow it.
For administrators: the checks Microsoft lists
For 0xC004F074, open the Application event log and find each event with Event ID 12288 from the activation attempt.
Microsoft says to troubleshoot each of those errors with its DNS guidance for KMS activation.
- Run
pingagainst the DNS server from both the client and the KMS host, and look for “Reply from.” - Run
slmgr.vbs /skmswith the host’s full name and port, thenslmgr.vbs /ato. If that works, the problem is the DNS record. - If it fails, repeat the test with the host’s IP address. If that works, the problem is most likely name resolution.
- If neither works, check that TCP port 1688 is open on the client and the KMS host.
- Run
nslookup -type=all _vlmcs._tcpand look for an entry that lists the KMS host and port 1688.
Microsoft notes that a successful nslookup does not prove the DNS client can find the host, so also check the primary DNS suffix and the search list.
What error 0xC004F038 means
Microsoft says the KMS count must be at least 25 for Windows client systems and at least 5 for Windows Server.
The administrator can see the current count by running slmgr.vbs /dli on the KMS host.
The fix is to add computers to the KMS pool, so a single PC cannot fix this error on its own.
Microsoft’s free diagnostic tools
- Get Help troubleshooter: the activation errors page points to the Activation troubleshooter in the Get Help app.
- Support and Recovery Assistant: Microsoft says it covers 0xC004F038, 0xC004F074, 0x8007007B and 0x8007232B among others.
When to contact Microsoft or your IT team
- The PC belongs to an employer or school and the error stays after you reconnect to its network.
- The error changes to a new code, because Microsoft says to look up the new code.
- Your own key will not activate Windows, which Microsoft’s customer support can check.