HOW TO CHANGE POWERSHELL VERSION

POWERSHELL BACKWARD COMPATIBILITY

If you have created a script in Powershell v1 or v2, it might not work with Powershell v3 or later. It is possible using a simple command to change the Powershell version.

This blog post shows how you can temporarily run Powershell in another version for backward compatibility.

HOW TO VERIFY WHICH POWERSHELL VERSION IS RUNNING

To see what version of Powershell you are running, run this variable:

$PSVersionTable

CHANGE TO ANOTHER POWERSHELL VERSION

To change the version to v2, enter this command:

powershell -version 2.0

RELATED POSTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here