We have a host server with Windows Server 2022 on it, and 6 product keys for the Standard ed. are bought for it. Taking the cores into account, that would be good for 2x Windows Server 2022 Std, and hence 4 Hyper-V Windows 2022 Std virtual servers can be run on it.
How do I get those 6 product keys on the server? (Or update the installation)
How do I find out how many licenses/product keys were applied? (Preferably which ones)
The final goal is to integrate a message about the legal availability to add another virtual server on the host, as we have powershell scripts that automatically install yet another virtual server based on virtual disks. As per datacenter editions, there was no need for this, but with Standard editions, that now is an issue.
You install one Key on the Host and the addon cores key goes to your desk / documentation folder for any possible MS Audit. The first 2 VM´s could use also the same key as the Host and any additional VM needs its own license for all cores.
Hope that makes sense and is accurate, if someone finds a mistake please correct me.
How to get product key:
admin cmd: wmic path softwarelicensingservice get OA3xOriginalProductKey