KMSPico works by emulating a Key Management Service (KMS) host, which is a server that activates Windows and Office products over a network. When you run KMSPico, it generates a KMS host ID and activates the product using this ID.