I have written a powershell script and it should work both in version 1 and version 2.
Can more than one powershell versions co-exist in a single machine ? Or should i have powershell versions in separate machine ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, the answer is yes and no.
Technically, on PowerShell 2.0 system, you can access PowerShell version 1.0 using
parameter of powershell.exe
Similarly, on PowerShell 3.0 system, you can acccess PowerShell verison 2.0 using
You cannot have both installed seperately on the same machine. PowerShell itself provides a way to go to the earlier version.