question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PSVersionTable needs an *OS* key

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lzybkrcommented, Aug 21, 2016

Dupe of #1635.

1reaction
Jaykulcommented, Aug 21, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways to Check your PowerShell Version (Good AND Bad)
Learn every way check PowerShell version that you have on local and remote computers both the bad and recommended ways.
Read more >
about PowerShell Editions
From PowerShell 5.1, there are multiple editions of PowerShell that each run on a different .NET runtime. As of PowerShell 6.0 there are...
Read more >
How to Check Your PowerShell Version
In the PowerShell window, type $PSVersionTable.PSVersion and press ENTER to get the exact version of PowerShell. For more details on the ...
Read more >
How to check the PowerShell version
Last, we'll look at what is probably the most useful method, another automatic variable called $PSVersionTable. This is a very reliable method ...
Read more >
Determine installed PowerShell version
Use $PSVersionTable.PSVersion to determine the engine version. If the variable does not exist, it is safe to assume the engine is version ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found