Skip to content

OSDisplayVersion property is missing from Get-ComputerInfo #19120

Closed

Description

Prerequisites

Steps to reproduce

Windows PowerShell, as of at least v5.1.22621.963 (as found on Windows 11 22H2), now supports a (currently undocumented) OSDisplayVersion property, with a value such as 22H2:

(Get-ComputerInfo).OSDisplayVersion

This property should be added to PowerShell Core's implementation too.

Expected behavior

22H2

(for instance; should be whatever value
Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' DisplayVersion returns)

Actual behavior

No output.

Error details

No response

Environment data

PowerShell Core v7.3.2 (.NET 7.0.2) on Microsoft Windows 11 Pro (ARM 64-bit Processor; Version 22H2, OS Build: 22621.1105)

Visuals

No response

Activity

  1. CarloToso commented on Feb 9, 2023

    @CarloToso
    Contributor

    (Get-ComputerInfo).OSDisplayVersion --> No Output
    PowerShell 5.1.19041.2364, OS Windows 10 22H2

  2. 237dmitry commented on Feb 9, 2023

    @237dmitry

    (Get-ComputerInfo).OSDisplayVersion --> No Output

    Because this property does not exist

  3. mklement0 commented on Feb 9, 2023

    @mklement0
    ContributorAuthor

    CarloToso, you're on Windows 10.
    Note what it says in the initial post:

    Windows PowerShell, as of at least v5.1.22621.963 (as found on Windows 11 22H2)

  4. CarloToso commented on Feb 9, 2023

    @CarloToso
    Contributor

    Michael Klement (@mklement0) I was just confirming the property does not exist in Windows 10.

  5. removed
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Feb 17, 2023
  6. BobBuildingCode commented on Nov 15, 2023

    @BobBuildingCode

    This is still an issue with PowerShell 7.3.9.

  7. andreybrasil commented on Jun 6, 2025

    @andreybrasil

    This is still an issue with PowerShell 7.4.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreWG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions