Error 0xC004F074 "No Key Management Service (KMS) could be contacted"

Aravind Raman 0 Reputation points
2025-02-28T00:34:28.7533333+00:00

Unable to activate window server 2022 datacenter version getting an error message

Activating Windows(R), ServerDatacenter edition (ef6cfc9f-8c5d-44ac-9aad-de6a2ea0ae03) ...
Error: 0xC004F074 The Software Licensing Service reported that the computer could not be activated. No Key Man
agement Service (KMS) could be contacted. Please see the Application Event Log for additional information.

Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,944 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Molly Lu-MSFT 1,101 Reputation points Microsoft Vendor
    2025-02-28T06:16:33.43+00:00

    Hello,

    Thank you for posting in Microsoft Q&A.

    Based on the description, I understand your question is related to KMS.

    According to the error Error: 0xC004F074 The Software Licensing Service reported that the computer could not be activated. No Key Man

    agement Service (KMS) could be contacted. Please see the Application Event Log for additional information.

    It seems your machine cannot connect to the KMS server.

    please try run below commands to manually specify the IP address of the KMS host, and then activate the KMS clients:

    slmgr /skms <IP address of the KMS host>
    slmgr /ato
    

    Have a nice day.

    Best Regards,

    Molly

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.