get-computerInfo shows totally wrong information

Jamie Marshall 1 Reputation point
2022-03-16T16:35:00.6+00:00

Running Get-ComputerInfo in powershell shows completely the wrong info. I'm running windows 11:

183871-image.png

However if I run Get-ComputerInfo I get a really old build and version:

183816-image.png

The only consistent number I see here is 21H2, which matches the display version under Computer Management:

183856-image.png

Is it not possible to get this all working consistently?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,164 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 32,506 Reputation points
    2022-03-16T16:54:41.923+00:00

    Hi,

    Run this command to get the OS build version via Get-ComputerInfo:

    Get-ComputerInfo OsName,OsVersion,OsBuildNumber,OsHardwareAbstractionLayer,WindowsVersion
    

    Please don't forget to mark helpful reply as answer

    0 comments No comments

  2. Reza-Ameri 16,831 Reputation points
    2022-03-16T17:24:41.913+00:00

    Firstly, this is a public forum and please edit the picture you just shared and hide or remove your email address because it is visible to everyone and they might abuse it to spam you.
    Try run Windows Update and download and install all updates and restart your PC and try again.
    In case problem persist, open start and search for feedback and open the Feedback Hub app and report this issue as a bug.

    0 comments No comments

  3. Michael Taylor 48,046 Reputation points
    2022-03-16T17:40:45.11+00:00

    It is by design, just not expected. For whatever reason MS wants apps to believe that Win11 is Win10 so there is less likelihood that an app will fail to install/run on Win11. It is talked about all over the place but here's one such discussion with all the arguments for and against. Note that this isn't new as they have done this before.

    The actual problem is that Get-ComputerInfo pulls its data from the registry (it appears) and since the main registry values haven't been updated then it is no more aware than any other app. MS keeps recommending to everyone who has an issue with this that you should look at the build #. If it is 22000 or higher than it is Win11 otherwise it is Win10. But ideally apps should be looking for features, not version #s.

    0 comments No comments