How to Run PowerShell v3 console in v2 mode

断了今生、忘了曾经 提交于 2019-11-28 09:07:44

问题


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.?

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


回答1:


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

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



来源:https://stackoverflow.com/questions/13864429/how-to-run-powershell-v3-console-in-v2-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!