PSVersionTable needs an *OS* key
See original GitHub issueWe 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:
- Created 7 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Dupe of #1635.
Sorry. I couldn’t find it (searching for PSVersionTable is pointless in here)