René's URL Explorer Experiment


Title: Make `$PSVersionTable` report correct and relevant OS information, underlying .NET version, CPU architecture, OS display version on Windows · Issue #19121 · PowerShell/PowerShell · GitHub

Open Graph Title: Make `$PSVersionTable` report correct and relevant OS information, underlying .NET version, CPU architecture, OS display version on Windows · Issue #19121 · PowerShell/PowerShell

X Title: Make `$PSVersionTable` report correct and relevant OS information, underlying .NET version, CPU architecture, OS display version on Windows · Issue #19121 · PowerShell/PowerShell

Description: Summary of the new feature / enhancement While $PSVersionTable.PSVersion is frequently used programmatically, the remaining properties are typically relevant to the human observer, and, notably, $PSVersionTable output is requested when s...

Open Graph Description: Summary of the new feature / enhancement While $PSVersionTable.PSVersion is frequently used programmatically, the remaining properties are typically relevant to the human observer, and, notably, $P...

X Description: Summary of the new feature / enhancement While $PSVersionTable.PSVersion is frequently used programmatically, the remaining properties are typically relevant to the human observer, and, notably, $P...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19121

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make `$PSVersionTable` report correct and relevant OS information, underlying .NET version, CPU architecture, OS display version on Windows","articleBody":"### Summary of the new feature / enhancement\n\nWhile `$PSVersionTable.PSVersion` is frequently used _programmatically_, the \nremaining properties are typically relevant to the human observer, and, notably, `$PSVersionTable` output is requested when submitting bug reports in this repo.\n\nThat output is currently suboptimal in several respects:\n\n* On Unix-like platforms, it doesn't provide a friendly OS name.\n  * On macOS, you'll see something like:\n     * `Darwin 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000`,\n     *  which neither tells you that this is a _Ventura_ release, nor its version (`13.1`)\n  * On WSL,  it isn't even obvious that you're running inside WSL; e.g.\n    * `Linux 4.4.0-22621-Microsoft #1105-Microsoft Fri Jan 01 08:00:00 PST 2016`\n  * I presume that other distros also do _not_ report their name (such as _Ubuntu_).\n\n* On Windows:\n  * The friendly OS name is _obsolete_, because it comes from an API that is frozen for backward-compatibility; e.g., `Microsoft Windows 10.0.22621` is still reported on Windows 11(!)\n  * It is missing the so-called display version, e.g. `22H2`, which is an important and easy way to identify the specific version.\n\n* _Update_: As @iSazonov points out, the machine architecture (x64, ARM32, ...) is important too and, on Windows, where 32-bit editions are still supported, whether the process is 32-bit.\n\n* Sometimes it is important to know what specific .NET version the given PowerShell version is built on - this information is missing (_Windows PowerShell_ has a `CLRVersion` property, which looks to be frozen in time as well).\n\n\n### Proposed technical implementation details (optional)\n\nThe exact format will have to be worked out, as well as whether to add the information to existing properties or whether to introduce new ones, but here are pointers as to where the information can be obtained (at least as an initial pointer - using system APIs is obviously preferable to calling CLIs):\n\n* Framework version:\n   * `[System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription`\n\n* Windows\n  * `Get-CimInstance Win32_OperatingSystem | Select-Object Caption, @{ n='DisplayVersion'; e={ Get-ItemPropertyValue 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' DisplayVersion } }`\n\n* macOS:\n   * `sw_vers`\n\n* Linux:\n  * Ubuntu, Debian:\n    * `lsb_release -a`\n  * Others? Potential pointers here: https://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/\n\n`uname -m` can provide machine architecture information on all Unix-like platforms.\n\nDesired sample output on Windows (doesn't try to maintain backward compatibility):\n\n```powershell\n# WISHFUL THINKING\nPS> $PSVersionTable\nName                           Value\n----                           -----\nPSVersion                      7.4.0-preview.1\nPSEdition                      Core\nGitCommitId                    7.4.0-preview.1\nFrameworkVersion               .NET 7.0.1                                # \u003c- NEW\nOS                             Microsoft Windows 11 Pro 22H2  (x64/32)   # \u003c- CHANGE\nPlatform                       Win32NT\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\nWSManStackVersion              3.0\n\n```\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2023-02-08T19:17:35Z","url":"https://github.com/PowerShell/PowerShell/issues/19121"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:39d511fe-a216-a221-aed3-70e58a93b5fa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA63A:64532:7C7EA1:AC96DF:6AFD2D5C
html-safe-nonce9ad23859d1c8fcb5779942e295d73de9c803e78080c0fad4e38f79ed106a4a13
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjNBOjY0NTMyOjdDN0VBMTpBQzk2REY6NkFGRDJENUMiLCJ2aXNpdG9yX2lkIjoiNDUxNjIxNTI2MjM3MzgxNzY5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb162a3de8b0ba6c23fe7dd50482b9a3ed8f955990d2e6cd187cdd4d7804c3d1a
hovercard-subject-tagissue:1576665470
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/19121/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b708e594edddee7aa8e921b0685a81b5c497affd9dab5b4d4ec0b4660f18d6a5/PowerShell/PowerShell/issues/19121
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b708e594edddee7aa8e921b0685a81b5c497affd9dab5b4d4ec0b4660f18d6a5/PowerShell/PowerShell/issues/19121
og:image:altSummary of the new feature / enhancement While $PSVersionTable.PSVersion is frequently used programmatically, the remaining properties are typically relevant to the human observer, and, notably, $P...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemklement0
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/19121#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F19121
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F19121
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/19121
Reloadhttps://github.com/PowerShell/PowerShell/issues/19121
Reloadhttps://github.com/PowerShell/PowerShell/issues/19121
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/19121
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/19121
Make $PSVersionTable report correct and relevant OS information, underlying .NET version, CPU architecture, OS display version on Windowshttps://github.com/PowerShell/PowerShell/issues/19121#top
https://github.com/JamesWTruher
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Feb 8, 2023https://github.com/PowerShell/PowerShell/issues/19121#issue-1576665470
Ilya (@iSazonov)https://github.com/iSazonov
https://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/https://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/
Michael Klement (mklement0)https://github.com/mklement0
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Feb 8, 2023https://github.com/PowerShell/PowerShell/issues/19121#event-8472218783
Michael Klement (mklement0)https://github.com/mklement0
on Feb 8, 2023https://github.com/PowerShell/PowerShell/issues/19121#event-8472320883
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Feb 9, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1423632834
#17059https://github.com/PowerShell/PowerShell/issues/17059
Conclusion therehttps://github.com/PowerShell/PowerShell/issues/17059#issuecomment-1376046307
Michael Klement (@mklement0)https://github.com/mklement0
#18854 (comment)https://github.com/PowerShell/PowerShell/issues/18854#issuecomment-1374563253
Ilya (iSazonov)https://github.com/iSazonov
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
on Feb 9, 2023https://github.com/PowerShell/PowerShell/issues/19121#event-8475498371
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Feb 9, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1424304137
Ilya (@iSazonov)https://github.com/iSazonov
#19120https://github.com/PowerShell/PowerShell/issues/19120
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Feb 9, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1424520624
https://stackoverflow.com/questions/22460589/armv8-running-legacy-32-bit-applications-on-64-bit-oshttps://stackoverflow.com/questions/22460589/armv8-running-legacy-32-bit-applications-on-64-bit-os
https://github.com/dotnet/runtime/blob/d2dfabf45d98782a9dc847fba32442e7aaa5b67b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs#L191https://github.com/dotnet/runtime/blob/d2dfabf45d98782a9dc847fba32442e7aaa5b67b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs#L191
https://camo.githubusercontent.com/aeb19ac101480369de19891df079dcdc760086ebe52cb08bd98183bfd18396e9/68747470733a2f2f63646e2e737374617469632e6e65742f53697465732f737461636b6f766572666c6f772f496d672f6170706c652d746f7563682d69636f6e40322e706e673f763d373364373961383962646564
ARMv8 - Running legacy 32 bit Applications on 64 bit OShttps://stackoverflow.com/questions/22460589/armv8-running-legacy-32-bit-applications-on-64-bit-os
https://camo.githubusercontent.com/94ca56c9974e1df2a8ee00d8a2259b0c15ebba2453efe5175ab2b46bdf0918e8/68747470733a2f2f6f70656e67726170682e6769746875626173736574732e636f6d2f373161316566376534336537666333653862363130613466616364313239356265386337346532343737363234663936653935313633663235383663333265312f646f746e65742f72756e74696d65
https://camo.githubusercontent.com/7e41d4698b37a89b2a8c06057583a5f48ce614b0fb7e2b93d27a2ec01c8f024b/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f66617669636f6e732f66617669636f6e2e737667
runtime/PlatformDetection.Unix.cs at d2dfabf45d98782a9dc847fba32442e7aaa5b67b · dotnet/runtimehttps://github.com/dotnet/runtime
https://github.com/Andrew74L
Andrew74Lhttps://github.com/Andrew74L
on Feb 9, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1424793627
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Feb 10, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1425125700
https://github.com/Andrew74L
Andrew74Lhttps://github.com/Andrew74L
on Feb 10, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1425158685
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Feb 10, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1425174469
https://github.com/Andrew74L
Andrew74Lhttps://github.com/Andrew74L
on Feb 10, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1425186221
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Feb 10, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1425262004
Michael Klement (@mklement0)https://github.com/mklement0
https://github.com/Andrew74L
Andrew74Lhttps://github.com/Andrew74L
on Feb 10, 2023https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1425448456
James Truher (JamesWTruher)https://github.com/JamesWTruher
on Aug 21, 2023https://github.com/PowerShell/PowerShell/issues/19121#event-10149353137
James Truher (JamesWTruher)https://github.com/JamesWTruher
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Aug 21, 2023https://github.com/PowerShell/PowerShell/issues/19121#event-10149355759
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
on Feb 17, 2024https://github.com/PowerShell/PowerShell/issues/19121#event-11837072885
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Feb 17, 2024https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1950285054
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
https://github.com/BobBuildingCode
Alex (BobBuildingCode)https://github.com/BobBuildingCode
on Feb 23, 2024https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-1960943712
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
on Feb 23, 2024https://github.com/PowerShell/PowerShell/issues/19121#event-11900959646
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
on Aug 21, 2024https://github.com/PowerShell/PowerShell/issues/19121#event-13959434019
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Aug 21, 2024https://github.com/PowerShell/PowerShell/issues/19121#issuecomment-2301896465
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 28, 2024https://github.com/PowerShell/PowerShell/issues/19121#event-14052358336
Michael Klement (mklement0)https://github.com/mklement0
on Mar 29, 2025https://github.com/PowerShell/PowerShell/issues/19121#event-17042970285
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/19121
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/19121
James Truher (JamesWTruher)https://github.com/JamesWTruher
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.