PSVersion is not recognized

After installing powershell, i tried running PSVersionTable.PSVersion and PSVersionTable to check the version, however i get the following error: 在这里输入图像描述

I did install WMF-4.0 and the .NET framework versions before installing WMF-v5

Most posts point me to make sure i have .NET and WMF-4.0 installed and i cant seem to find anything else.

Note I am Using windows 7


You need to enter $PsVersionTable . It is a built in variable and you access variables via $.


The correct way to get the version is $PSVersionTable . It's a variable, not a call to anything.

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

上一篇: 我如何获得当前正在执行的文件的路径和名称?

下一篇: PSVersion无法识别