I seem to get error 87 when checking the current edition as well.
C:\Windows\system32>dism /online /get-targeteditions
Deployment Image Servicing and Management tool Version: 10.0.14393.3750 Image Version: 10.0.14393.3241 Error: 87
The get-targeteditions option is unknown. For more information, refer to the help by running DISM.exe /?. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
C:\Windows\system32>
C:\Windows\system32>Dism /online /Set-Edition:ServerDatacenter /AcceptEula /ProductKey:MyVerifiedWorkingKeyHERE
Deployment Image Servicing and Management tool Version: 10.0.14393.3750 Image Version: 10.0.14393.3241 Error: 87
The set-edition option is unknown. For more information, refer to the help by running DISM.exe /?. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
C:\Windows\system32>
Looking into the logs and I see this after running the TargetEditions.
2020-07-07 09:05:39, Info DISM DISM Transmog Provider: PID=13304 TID=13272 Current image session is [ONLINE] - CTransmogManager::GetMode
2020-07-07 09:05:39, Info DISM DISM Transmog Provider: PID=13304 TID=13272 Audit Mode: [No] - CTransmogManager::Initialize
2020-07-07 09:05:39, Error DISM DISM Transmog Provider: PID=13304 TID=13272 GetProductType: Error [0x80070002] retrieving current ProductType value. - CTransmogManager::GetProductType
2020-07-07 09:05:39, Warning DISM DISM Provider Store: PID=13304 TID=13272 Failed to call Initialize method on IDismServicingProvider Interface - CDISMProviderStore::Internal_LoadProvider(hr:0x80070002)
2020-07-07 09:05:39, Warning DISM DISM Provider Store: PID=13304 TID=13272 Failed to Load the provider: C:\Users\HS1139~1\AppData\Local\Temp\B099C144-E6B0-492F-8E86-484EA966549B\TransmogProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007000 2)
2020-07-07 09:05:39, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table. 2020-07-07 09:05:39, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
And this arround the time I try to change the license.
2020-07-07 09:08:43, Info DISM DISM Transmog Provider: PID=4044 TID=10148 Current image session is [ONLINE] - CTransmogManager::GetMode
2020-07-07 09:08:43, Info DISM DISM Transmog Provider: PID=4044 TID=10148 Audit Mode: [No] - CTransmogManager::Initialize
2020-07-07 09:08:43, Error DISM DISM Transmog Provider: PID=4044 TID=10148 GetProductType: Error [0x80070002] retrieving current ProductType value. - CTransmogManager::GetProductType
2020-07-07 09:08:43, Warning DISM DISM Provider Store: PID=4044 TID=10148 Failed to call Initialize method on IDismServicingProvider Interface - CDISMProviderStore::Internal_LoadProvider(hr:0x80070002)
2020-07-07 09:08:43, Warning DISM DISM Provider Store: PID=4044 TID=10148 Failed to Load the provider: C:\Users\HS1139~1\AppData\Local\Temp\4E17B1A0-E481-41AE-8E61-FC6A08E1A676\TransmogProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x80070002 )
2020-07-07 09:08:43, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2020-07-07 09:08:43, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider 2020-07-07 09:08:43, Info DISM DISM.EXE: Attempting to add the commands from provider: OSServices