Where is the v2.0 and v3.0 folder for PowerShell?

On my box, I installed PowerShell 2.0, but the $PSHome varialbe always return the path below:

C:WindowsSystem32WindowsPowerShellv1.0

So, where is the v2.0 or v3.0 folder?


Just like how 64-bit system files in Windows are in System32 , all versions of Powershell install into the path that says v1.0 . One of the things that MS doesn't seem to learn from. Didn't you wonder that Powershell script files have the extension ps1 , psm1 etc?

链接地址: http://www.djcxy.com/p/29016.html

上一篇: 通过WMI远程确定PowerShell版本

下一篇: PowerShell的v2.0和v3.0文件夹在哪里?