如何在v2模式下运行PowerShell v3控制台

时间:2012-12-13 16:42:04

标签: powershell powershell-v2.0 powershell-v3.0

在Windows Server 2008 R2的最新更新中,他们也在推动Windows PowerShell V3.0。 但是,我们的脚本在V2中构建和测试至今。 如何在V2模式下运行PowerShell V3 Console。

注意:我试过" -Version 2"启动PowerShell.exe时。但它没有用。

1 个答案:

答案 0 :(得分:8)

powershell.exe -version 2以何种方式无效?这是安装v3时运行v2的方法。

BTW,确保已安装PowerShell 2.0引擎。检查Windows功能:

Windows Features - PowerShell 2.0