Share via

MSDN: Windows powershell to powershell core upgrade

James J 606 Reputation points
2021-01-29T01:11:59.157+00:00

We are planning to upgrade Windows powershell 3.0 to powershell core 7.x into our application. In good number of .NET framework application which calls powershell.exe . My question here is from

(1) Calling pwsh.exe (Powershell core) from .NET framework application do we see any challenges? Because Powershell core requires .NET core runtime.

(2) I have written some of the powershell script and tested using PS 3 latter If I install PS 4 then I can use the version -2 instead of 3.0 to run powershell scripts. In case when I upgrade to 5.1 will it support version -2.0, 3.0 4.0 and 5.0 powershell script or I will face 3.0 version compatibility issue.

Can you please clarify.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Answer accepted by question author

Anonymous
2021-02-02T02:32:59.16+00:00

Hi,

Windows PowerShell 5.1 is compatible with the previous versions and your scripts tested in version 3.0 should work fine. For the first question, as it's more related to .net framework you can start a new thread with a dotnet tag.

Best Regards,
Ian Xue

============================================

If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.