Hi,
I have noticed that PS version 4 seems to "replace" version 3. I.e. there is no way to access 3 once 4 is installed. This differs to how version 2 & 3 operated, which allowed side by side execution.
E.g:
- If you have PS 4 installed, open up a PowerShell console and run "$PSVersionTable". It will list "4.0".
- If you have PS 3 installed, open up a PowerShell console and run "$PSVersionTable". It will list "3.0".
Now, to access PS 2 from either 4 or 3, type "powershell -version 2". Once the nested shell is accessed, again run "$PSVersionTable", it will list "2.0".
However, if you have 4 installed and run "powershell -version 3", $PSVersionTable will continue to return "4.0".
Is this by design? Is there a way of loading PS 3 even if PS 4 is available? I have large scripts which have compatibility issues/behaviour differences with 4 and would like to avoid running on 4 until they have been well tested.
Thanks,
Bardo