Copied from LINK

PUBLIKOVÁNO 23 SRP ’17 , AUTOR: TOMAS KALABIS

VMware vSphere – How to activate Windows Server OEM licence in virtual machine

I have installed a Windows Server 2012 R2 with a Fujitus OEM licence on ESXi 6.5, but when i try to activate this operating system i got always an error with licence key. The solution is add following lines to the .vmx file of affected VM.

1

2

3

4

5

SMBIOS.reflectHost = “TRUE”

SMBIOS.noOEMStrings = “TRUE”

smbios.addHostVendor = “TRUE”

now you can try activate Windows via Command line:

1

2

3

c:windowssystem32slmgr.vbs /ipk “your product Key”   <—without quotes (but enter in CAPS with dashes)

c:windowssystem32slmgr.vbs /ato