How to remove KMS key from Windows 10 or 11

To remove the KMS (Key Management Service) key from a Windows 10 or 11 system, you can follow these steps:

  1. Open Command Prompt as Administrator:

    • Press Win + X to open the Power User menu.
    • Select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”.
    • Click “Yes” if prompted by User Account Control (UAC).
  2. Check the Current Key:

    • Type the following command and press Enter:
      slmgr /dli
    • This will display the current licensing information, including the activation status and the partial product key.
  3. Uninstall the KMS Key:

    • Type the following command and press Enter:
      slmgr /upk
    • This will uninstall the current product key (including the KMS key).
  4. Clear the Product Key from the Registry:

    • Type the following command and press Enter:
      slmgr /cpky
    • This will clear the product key from the registry.
  5. Disables KMS host caching:

    • Type the following command and press Enter:
      slmgr /ckhc
    • This will disables KMS host caching.
  6. Remove the KMS host name:

    • Type the following command and press Enter:
      slmgr /ckms
    • This will remove the specified KMS host name, address, and port information from the registry and restores KMS auto-discovery behavior.
  7. Disable DNS publishing by the KMS host from the Registry:

    • Type the following command and press Enter:
      slmgr /cdns
    • This will Disable DNS publishing by the KMS host.
  8. Restart the System:

    • It is recommended to restart your computer after performing the above steps to ensure all changes take effect.

After following these steps, the KMS key should be removed from your Windows 10 or 11 system.