moving to powershell 6, users on 5. Will EXEs work on 5?

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
SuperPlated
Posts: 11
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Tue Apr 22, 2014 5:27 am

moving to powershell 6, users on 5. Will EXEs work on 5?

Post by SuperPlated »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: Powershell Studio 2017
32 or 64 bit version of product: 64 bit
Operating system: Windows 10
32 or 64 bit OS: 64 bit

*** Please add details and screenshots as needed below. ***

My current version of Powershell is:

Major Minor Build Revision
----- ----- ----- --------
5 1 17134 228

I'm getting heavily involved into Invoke-RestMethod and other fun stuff and am thinking of moving to Powershell 6.1 (latest).

I write a number of tools for my colleagues who most certainly do not have Powershell > 5.

2 Questions:
1) If I move to Powershell version 6.x, what do I need to do to Powershell Studio (if anything)?
2) If I write a script and compile it down to an EXE, do my users need to be on Powershell ver 6 to avoid runtime versioning errors?

Thanks for your expertise and experience!

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: moving to powershell 6, users on 5. Will EXEs work on 5?

Post by davidc »

Hello,

1) PowerShell Studio supports V6 and will allow you to select the platform from the ribbon (Ribbon->Home->Platform). For more details, please refer to the following article:

https://www.sapien.com/blog/2018/08/14/powershell-studio-2018-service-release-v5-5-154-and-pscore-support/

2) Currently our packager only supports up to V5. Adding a V6 packager engine is on our TODO list.

If your script uses V6 specific features or modules, then your V5 users will not be able to run the script.
Note: Invoke-RestMethod is supported in V5.
David
SAPIEN Technologies, Inc.