Just like any other computer, the KMS also needs to get activated. If you are receiving an error code 0xC004F041 with the message as -

The Software Licensing Service determined that the Key Management Service (KMS) is not activated. KMS needs to be activated. Please contact the system administrator. 0xC004F041

then there is something wrong with the KMS service. If you are an admin, then you should know that KMS gets activated only when it has reached the minimum computer requirement which is 25.

Open command prompt where the KMS is installed.

Type and enter slmgr.vbs -dlv. Check what is the status of Current Count. If it is less than 25, check the status of total requests received.

The idea is you might have to wait for a while for KMS to get activated and it happens only when the minimum active computer count is reached.