http://msdn.microsoft.com/zh-CN/library/ff637750.aspx声明
仅在Windows Server 2008和Windows Vista上安装Windows PowerShell 2.0。它已经安装在Windows Server 2008 R2和Windows 7上。
但是,powershell.exe位于此处%SystemRoot%\ system32 \ WindowsPowerShell \ v1.0 \ powershell.exe。看起来好像不是PowerShell 2.0。powershell.exe的文件版本为6.1.7600.16385,因此也无济于事。
我如何确定我是否安装了Windows PowerShell 2.0,如果没有安装,Windows 7的下载链接在哪里?
$Host
自动变量。不过,它在规范中被标记为特定于实现的(再次,Get-Host
在规范中根本没有出现)。