Recently, I moved a Windows 10 Home machine from factory to a Windows 10 Enterprise by using a KMS product key. It was an emergency situation as the employee was remote and we could not procure a Windows 10 Pro machine in a reasonable amount of time.
The thought process was, convert that Windows 10 Home to Enterprise using the KMS generic key, reset Windows, and let it join the domain (before the reset I added the machine to Windows Autopilot getting the hardware ID from the Get-AutoPilot PowerShell), join the Azure AD domain, auto-provision, and then use the Windows 10 Enterprise subscription license assigned to the authenticated user.
All of this happened successfully, except for the last bit. The machine is correctly joined in the Azure AD domain, I have all policies deployed to the machine, everything as expected in an Autopilot/Intune OOBE model.
However, I cannot figure out a way to remove the KMS key and let it use the Subscription Activation feature. It always fails with the error 0x8007232B (for when it cannot find a KMS server, which we don't have, I just wanted a quick way to allow the machine to have the ability to join an Azure AD domain and use our licenses).
I have tried using the command below to remove the product key and force an activation, but it failed it with another error code, and then the KMS key showed up back in the Activation settings:
slmgr.vbs /upk
Currently, Windows is sitting on an Enterprise license with a KMS key in not activate state.
How can I force this now Windows 10 Enterprise with a generic KMS key to consider the Subscription one for activation?