Determine installed PowerShell version

前端 未结 19 2666
半阙折子戏
半阙折子戏 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").

提交回复
热议问题