Determine installed PowerShell version

前端 未结 19 2585
半阙折子戏
半阙折子戏 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:06

    To check if PowerShell is installed use:

    HKLM\Software\Microsoft\PowerShell\1 Install ( = 1 )
    

    To check if RC2 or RTM is installed use:

    HKLM\Software\Microsoft\PowerShell\1 PID (=89393-100-0001260-00301) -- For RC2
    HKLM\Software\Microsoft\PowerShell\1 PID (=89393-100-0001260-04309) -- For RTM
    

    Source: this website.

提交回复
热议问题