PowerShell Studio 2018 uses old version of PowerShell

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
chrischrischris
Posts: 2
Joined: Tue May 29, 2018 2:24 pm

PowerShell Studio 2018 uses old version of PowerShell

Post by chrischrischris » Tue May 29, 2018 3:07 pm

To help you better we need some information from you.

*** Please fill in the fields below if you are currently using a Trial Version of the Product. 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:
64 bit version of product:
Operating system: Windows 7 Enterprise, SP1
64 bit OS: Windows 7 Enterprise, SP1

*** Please add details and screenshots as needed below. ***
I installed PowerShell 6.0.2 but PowerShell Studio 2018 uses old version of PowerShell.
How do I fix this?

New version is 6.0.2:
Target: "C:\Program Files\PowerShell\6.0.2\pwsh.exe"
Start in: "C:\Program Files\PowerShell\6.0.2\"

Old version is 5.1.14409.1012:
Target: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
Start in:%HOMEDRIVE%%HOMEPATH%



DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

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

Re: PowerShell Studio 2018 uses old version of PowerShell

Post by davidc » Tue May 29, 2018 3:36 pm

PowerShell Studio's internal host uses Windows PowerShell, but we will to add v6 support.

You can add PowerShell Core (v6) console in Options->Console. If you press the Reset button, it should detect the PowerShell Core installation.

For more details on customizing consoles, refer to the following article:

https://www.sapien.com/blog/2018/03/29/ ... hell-core/
David
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 6544
Joined: Tue May 29, 2007 4:43 pm

Re: PowerShell Studio 2018 uses old version of PowerShell

Post by Alexander Riedel » Tue May 29, 2018 7:23 pm

Just to make this clear, Microsoft Windows PowerShell 5.1 is the official PowerShell version integrated into Windows.
It is the current version of Microsoft Windows PowerShell and fully supported.

PowerShell 6 or PowerShell Core is an open source project, based on Microsoft's PowerShell code. It is not a newer version of Microsoft Windows PowerShell.
It operates on the .NET Core framework, which at this time does not support Windows Forms, WPF or any other UI framework.
While we will do what we can to support PowerShell Core, there are some differences that will make some code not work, for example none of the user interfaces created with PowerShell Studio will run in PowerShell Core.
Microsoft has announced that it will add some type of UI support to .NET Core in the future, but we have no information on timing or extent.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
chrischrischris
Posts: 2
Joined: Tue May 29, 2018 2:24 pm

Re: PowerShell Studio 2018 uses old version of PowerShell

Post by chrischrischris » Mon Jun 04, 2018 11:19 am

Thank you very much! That did the trick:

Code: Select all

PS C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2018> $PSVersionTable                      
                                                                                                          
Name                           Value                                                                      
----                           -----                                                                      
PSVersion                      6.0.2                                                                      
PSEdition                      Core                                                                       
GitCommitId                    v6.0.2                                                                     
OS                             Microsoft Windows 6.1.7601 S                                               
Platform                       Win32NT                                                                    
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                    
PSRemotingProtocolVersion      2.3                                                                        
SerializationVersion           1.1.0.1                                                                    
WSManStackVersion              3.0