Get correct OSName for Windows 11 from Hyper-V

Ben Jones2 21 Reputation points
2022-04-29T12:59:09.513+00:00

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
https://learn.microsoft.com/en-us/previous-versions/windows/desktop/virtual/msvm-kvpexchangedataitem

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.
10,164 questions
{count} votes

Accepted answer
  1. Reza-Ameri 16,996 Reputation points
    2022-05-01T13:04:38.3+00:00

    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 2,126 Reputation points
    2022-04-29T16:06:57.227+00:00

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.