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

Rin*_*Tom 3 powershell powershell-2.0 powershell-3.0

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

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

Kei*_*ill 8

以什么方式powershell.exe -version 2不起作用?这是在安装v3时运行v2的方法.

顺便说一句,确保已安装PowerShell 2.0引擎.检查Windows功能:

Windows功能 -  PowerShell 2.0