Page 1 of 1

PowerShell Studio 2018 uses old version of PowerShell

Posted: Tue May 29, 2018 3:07 pm
by chrischrischris
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

Re: PowerShell Studio 2018 uses old version of PowerShell

Posted: Tue May 29, 2018 3:36 pm
by davidc
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/

Re: PowerShell Studio 2018 uses old version of PowerShell

Posted: Tue May 29, 2018 7:23 pm
by Alexander Riedel
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.

Re: PowerShell Studio 2018 uses old version of PowerShell

Posted: Mon Jun 04, 2018 11:19 am
by chrischrischris
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