ken*_*ner 8 windows-7 powershell powershell-2.0
http://msdn.microsoft.com/en-us/library/ff637750.aspx声明
Windows PowerShell 2.0 只需要安装在 Windows Server 2008 和 Windows Vista 上。它已安装在 Windows Server 2008 R2 和 Windows 7 上。
但是,powershell.exe 位于 %SystemRoot%\system32\WindowsPowerShell\ v1.0 \powershell.exe。这似乎不是 PowerShell 2.0。powershell.exe 的文件版本是 6.1.7600.16385,所以这也没什么帮助。
我如何确定我是否安装了 Window PowerShell 2.0,如果没有,Windows 7 的下载链接在哪里?
小智 12
你也可以使用 $PSVersionTable
PS > $PSVersionTable
Name Value
---- -----
PSVersion 2.0
PSCompatibleVersions {1.0, 2.0}
BuildVersion 6.1.7600.16385
PSRemotingProtocolVersion 2.1
WSManStackVersion 2.0
CLRVersion 4.0.30319.225
SerializationVersion 1.1.0.1
Run Code Online (Sandbox Code Playgroud)
此变量仅存在于 PowerShell V2.0 中,并提供您使用的 CLR 版本。正常结果是:
PS > $PSVersionTable
Name Value
---- -----
CLRVersion 2.0.50727.4959
BuildVersion 6.1.7600.16385
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20650 次 |
| 最近记录: |