如何在 v2 模式下运行 PowerShell v3 控制台 [英] How to Run PowerShell v3 console in v2 mode

查看:33
本文介绍了如何在 v2 模式下运行 PowerShell v3 控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In recent updates of Windows Server 2008 R2, they are pushing Windows PowerShell V3.0 also along with that. But, our scripts are built and tested in V2 till now. How can I run PowerShell V3 Console in V2 mode.?

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

Note: I tried "-Version 2" while starting the PowerShell.exe. But it is not working.

推荐答案

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

In what way is powershell.exe -version 2 not working? This is how you run v2 when v3 is installed.

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

BTW, make sure that the PowerShell 2.0 engine is installed. Check Windows Features:

这篇关于如何在 v2 模式下运行 PowerShell v3 控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆