在最近的Windows Server 2008 R2更新中,他们也在推动Windows PowerShell V3.0.但是,我们的脚本在V2中构建和测试到现在为止.如何在V2模式下运行PowerShell V3 Console.
注意:我在启动PowerShell.exe时尝试了"-Version 2".但它没有用.
powershell powershell-2.0 powershell-3.0
powershell ×1
powershell-2.0 ×1
powershell-3.0 ×1