Title: `OSDisplayVersion` property is missing from `Get-ComputerInfo` · Issue #19120 · PowerShell/PowerShell · GitHub
Open Graph Title: `OSDisplayVersion` property is missing from `Get-ComputerInfo` · Issue #19120 · PowerShell/PowerShell
X Title: `OSDisplayVersion` property is missing from `Get-ComputerInfo` · Issue #19120 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19120
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`OSDisplayVersion` property is missing from `Get-ComputerInfo`","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nWindows PowerShell, as of at least v5.1.22621.963 (as found on Windows 11 22H2), now supports a ([currently undocumented](https://learn.microsoft.com/en-US/dotnet/api/Microsoft.PowerShell.Commands.ComputerInfo?view=powershellsdk-1.1.0)) `OSDisplayVersion` property, with a value such as `22H2`:\r\n\r\n```powershell\r\n(Get-ComputerInfo).OSDisplayVersion\r\n```\r\n\r\nThis property should be added to PowerShell Core's implementation too.\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\n22H2\r\n```\r\n\r\n(for instance; should be whatever value \r\n`Get-ItemPropertyValue 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' DisplayVersion` returns)\r\n\r\n### Actual behavior\r\n\r\n```console\r\nNo output.\r\n```\r\n\r\n\r\n### Error details\r\n\r\n_No response_\r\n\r\n### Environment data\r\n\r\n```powershell\r\nPowerShell Core v7.3.2 (.NET 7.0.2) on Microsoft Windows 11 Pro (ARM 64-bit Processor; Version 22H2, OS Build: 22621.1105)\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2023-02-08T18:41:26Z","url":"https://github.com/PowerShell/PowerShell/issues/19120"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0f6c62af-e7cc-aa92-a9bd-cc805de1bae3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA80:3DE870:23CA0FA:31C471F:6AFD335C |
| html-safe-nonce | e5e8a79ba24aff77675a0b68264360f48e4dc82fbf01892630fd10cf5fc0b82b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTgwOjNERTg3MDoyM0NBMEZBOjMxQzQ3MUY6NkFGRDMzNUMiLCJ2aXNpdG9yX2lkIjoiNzM0NzE3MTE5OTUxMzYwNDk1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 161ac9dff5e9ec6ccc0c99c611a4aa13e6c35742e52e23764b18e8254f68ae4e |
| hovercard-subject-tag | issue:1576618867 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/19120/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79a3d0e02527c5eef3764a14950c52902ee5cb21fdc957cc87f8bb1b7d9f7000/PowerShell/PowerShell/issues/19120 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79a3d0e02527c5eef3764a14950c52902ee5cb21fdc957cc87f8bb1b7d9f7000/PowerShell/PowerShell/issues/19120 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width