Error 0xC004F074 — Windows or Office activation issue via KMS
The error 0xC004F074 indicates that the Windows system or Microsoft Office package cannot contact the KMS (Key Management Service) activation service. In simple terms: the computer is trying to confirm the licence on the activation server, but the connection is not successful or the server's response is incorrect.
Most often, the problem occurs in corporate, school, and administrative environments, where activation is performed centrally via a KMS server. In practice, the user sees a message about failed activation, even though the system or Office was working properly before.
What does this error mean
The code 0xC004F074 usually means that the KMS client did not receive a response from the KMS host. This may concern:
- Windows system activation,
- Office package activation in collectively licensed versions,
- renewal of activation after the expiration of the validity period.
This does not always mean a lack of licence. Often, the problem concerns communication, DNS configuration, system time, or incorrectly set KMS server.
When does the error 0xC004F074 occur
The error most often occurs:
- during a manual attempt to activate Windows,
- after installing or migrating the Office package,
- after changing the network, domain, or DNS server,
- after restoring the system from an image,
- after a long period of working on a computer outside the company network,
- when the KMS server is unavailable or overloaded,
- after changes to the firewall, proxy, or security policies.
Causes
The most common causes of the 0xC004F074 error are:
- lack of connection to the KMS server,
- incorrect KMS server address,
- incorrect DNS record for the KMS service,
- blocked port
1688/TCP, - discrepancy in date, time, or time zone between the client and server,
- damaged Windows system files,
- incorrect licensing service configuration,
- attempt to activate an Office or Windows version that does not support KMS activation,
- expired or incorrect KMS host configuration,
- conflicts after previous activation tools or remnants of old keys.
Step-by-step Solution
The following steps should be performed in the Command Prompt run as administrator.
1. Check the Date and Time
An incorrect system time often prevents activation. Ensure that the date, time, and time zone are correct.
2. Check the Windows Activation Status
slmgr.vbs /dlv
This command displays license details, including the activation method and any configured KMS host.
3. Set the Correct KMS Server Manually
If your organisation has provided a KMS server address, enter it manually:
slmgr.vbs /skms NAME_OR_IP_OF_SERVER:1688
Example:
slmgr.vbs /skms kms.yourcompany.local:1688
Then, run the activation:
slmgr.vbs /ato
If you want to remove the manually set KMS server and return to automatic detection via DNS, use:
slmgr.vbs /ckms
slmgr.vbs /ato
4. Repair System Files
If the problem is due to damaged system components, run:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
After completion, restart the computer and retry the activation:
slmgr.vbs /ato
5. Check Office Activation
For the Office package, go to the Office installation directory and run the ospp.vbs tool.
For 64-bit Office on 64-bit Windows, it is usually:
cd "C:\Program Files\Microsoft Office\Office16"
For 32-bit Office on 64-bit Windows:
cd "C:\Program Files (x86)\Microsoft Office\Office16"
Check the license status:
cscript ospp.vbs /dstatus
Set the KMS host:
cscript ospp.vbs /sethst:kms.yourcompany.local
Optionally, set the port:
cscript ospp.vbs /setprt:1688
Run the activation:
cscript ospp.vbs /act
Alternative Repair Methods
If the primary method does not work, check the following solutions.
Clear Incorrect KMS Configuration for Office
cscript ospp.vbs /remhst
cscript ospp.vbs /act
Check Connectivity to the KMS Server
If you know the host name, check if the computer can see it:
ping kms.yourcompany.local
nslookup kms.yourcompany.local
If the name does not resolve, the problem may be with DNS or the connection to the company network.
Check if the Licensing Service is Working Correctly
Reread the activation details:
slmgr.vbs /dlv
slmgr.vbs /xpr
This will check if the system is activated periodically by KMS or if the license has expired.
Remove Incorrect Key and Enter the Correct One
If an incorrect volume key or a remnant of an old configuration is stored in the system:
slmgr.vbs /upk
slmgr.vbs /cpky
Then, enter the correct installation key provided by the administrator and retry the activation:
slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr.vbs /ato
When to Contact Support
It's worth contacting technical support when:
- the
0xC004F074error returns despite correct KMS configuration, - the computer is on the company network but still cannot connect to the KMS host,
- you are unsure if your version of Windows or Office supports KMS activation,
slmgr.vbs /atoandcscript ospp.vbs /actend with subsequent errors,- the problem affects multiple computers at the same time,
- you suspect damage to the license, domain configuration, or DNS.
In such cases, contact support at 00 800 121 1654 or email [email protected] for assistance.
Related Errors
The 0xC004F074 error is often accompanied by other activation codes:
0xC004F038— the KMS server has not reached the required activation threshold,0x8007232B— a problem with the KMS host DNS name,0xC004F050— an invalid product key,0xC004C008— the key has been used too many times,0x8007007B— an incorrect file name, directory name, or volume label syntax during activation,0xC004E003— a problem with the license store or activation components.
Summary
The 0xC004F074 error usually does not indicate a system failure, but rather a problem with communication with the KMS server or with the activation configuration. First, it is worth checking the system time, KMS settings, license status, and Windows file integrity. If after performing all the steps the activation still fails, the intervention of an administrator or contact with technical support may be necessary.