Determine installed PowerShell version

前端 未结 19 2379
半阙折子戏
半阙折子戏 2020-11-22 09:40

How can I determine what version of PowerShell is installed on a computer, and indeed if it is installed at all?

相关标签:
19条回答
  • 2020-11-22 10:19

    The easiest way to forget this page and never return to it is to learn the Get-Variable:

    Get-Variable | where {$_.Name -Like '*version*'} | %{$_[0].Value}
    

    There is no need to remember every variable. Just Get-Variable is enough (and "There should be something about version").

    0 讨论(0)
提交回复
热议问题