问题
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