Powershell V6 and V5.1 coexistence

Greetings,

We have a script server that runs loads of PS scheduled scripts using V5.1.

Recently someone came to us with a requirement to run a script which requires PS V6.

Can I install V6 on the script server? Will it co-exist with 5.1? Will the existing scripts run using V5.1 if V6 is installed?

Thanks

David

They do. They are installed in different locations. Windows Powershell : “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” and Powershell Core (or 6.2 or 7.0rc1 or what ever): “C:\Program Files\PowerShell\7-preview\pwsh.exe

Of course. You simply choose the version you need by the executable you start. :wink:

Thanks heaps!