You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OSDisplayVersion property is missing from Get-ComputerInfo #19120
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)
Activity
CarloToso commentedon Feb 9, 2023
(Get-ComputerInfo).OSDisplayVersion--> No OutputPowerShell 5.1.19041.2364, OS Windows 10 22H2
237dmitry commentedon Feb 9, 2023
Because this property does not exist
mklement0 commentedon Feb 9, 2023
CarloToso, you're on Windows 10.
Note what it says in the initial post:
CarloToso commentedon Feb 9, 2023
Michael Klement (@mklement0) I was just confirming the property does not exist in Windows 10.
BobBuildingCode commentedon Nov 15, 2023
This is still an issue with PowerShell 7.3.9.
andreybrasil commentedon Jun 6, 2025
This is still an issue with PowerShell 7.4.10.