8000 PSVersionTable needs an *OS* key · Issue #1997 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

PSVersionTable needs an *OS* key #1997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jaykul opened this issue Aug 21, 2016 · 6 comments
Closed

PSVersionTable needs an *OS* key #1997

Jaykul opened this issue Aug 21, 2016 · 6 comments
Labels
Resolution-Duplicate The issue is a duplicate.

Comments

@Jaykul
Copy link
Contributor
Jaykul commented Aug 21, 2016

We need to be able to at least tell whether we're on Windows or Unix from the PSVersionTable.

Ideally, I'd like to be able to differentiate Windows Server, Windows Desktop, Nano Server, OS X, and BSD from Linux.

Since PSEdition Core runs on Windows (and even Windows Desktop), and since CLRVersion will presumably be the same across all versions of Core (even if it were populated #1984), and since "BuildVersion" is going backwards ...

I also think that PSVersionTable should expose "Architecture" (ARM, AMD64, x86).

@kilasuit
Copy link
Collaborator

Agreed and suggested this in #1936 as well as a change to the Issue template to make issues easier to track

@rkeithhill
Copy link
Collaborator

It would make for a nice way to gather information for a bug report. I like. And on Linux, you probably want the specific version i.e. not just Ubuntu but something to distinguish between 14.04 and 16.04. Also, Architecture needs to disambiguate between OS architecture and current process architecture e.g. PowerShell x86 running on Windows x64.

@lzybkr
Copy link
Contributor
lzybkr commented Aug 21, 2016

Dupe of #1635.

@lzybkr lzybkr closed this as completed Aug 21, 2016
@lzybkr lzybkr added the Resolution-Duplicate The issue is a duplicate. label Aug 21, 2016
@Jaykul
Copy link
Contributor Author
Jaykul commented Aug 21, 2016

Sorry. I couldn't find it (searching for PSVersionTable is pointless in here)

@MaximoTrinidad
Copy link

I agree!
+1 for Jaykul

@lzybkr
Copy link
Contributor
lzybkr commented Aug 22, 2016

No problem, I opened it, so I knew it was there. I did search for PSVersionTable first, way too many hits, so added OS and many fewer hits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate The issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

5 participants
0