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.
In what way is
powershell.exe -version 2not 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: