Skip to content

PSVersionTable needs an *OS* key #1997

Closed

Description

@Jaykul

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).

Activity

  1. kilasuit commented on Aug 21, 2016

    @kilasuit
    Collaborator

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

  2. rkeithhill commented on Aug 21, 2016

    @rkeithhill
    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.

  3. lzybkr commented on Aug 21, 2016

    @lzybkr
    Contributor

    Dupe of #1635.

  4. Jaykul commented on Aug 21, 2016

    @Jaykul
    ContributorAuthor

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

  5. MaximoTrinidad commented on Aug 22, 2016

    @MaximoTrinidad

    I agree!
    +1 for Jaykul

  6. lzybkr commented on Aug 22, 2016

    @lzybkr
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions