Get correct OSName for Windows 11 from Hyper-V

Ben Jones2 21 Reputation points

There appears to be no way of obtaining the correct OS name for Hyper-V virtual machines running Windows 11.

We get this information from the Msvm_KvpExchangeDataItem class, but Windows 11 reports incorrectly as Windows 10, even on latest builds.

Per documentation this value comes from the registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProductName

Is this something Microsoft plans to address? We rely on this value to display information about virtual machines without needing to query the guests directly.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
4,685 questions
{count} votes

Accepted answer
  1. Reza-Ameri 15,186 Reputation points

    This issue has been reported and I advise you to open the Feedback Hub app and look into already existing feedback and if that is your case, you may upvote it. Otherwise, you may create a new bug report.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Darrell Gorter 356 Reputation points

    The value of Windows 10 on that registry key is by design, there are no plans to change it.