Idera Expands Commitment to PowerShell Community by Providing PowerShell Plus for Free

rated by 0 users
This post has 9 Replies | 3 Followers

Top 10 Contributor
Posts 4,502
ps2 Posted: 10-24-2012 11:25 AM

Idera, a leading provider of application and server management solutions, today demonstrated its strong commitment to the PowerShell community by making its PowerShell Plus product available for free. This milestone was also marked by the delivery of a new version of the product, PowerShell Plus 4.6. 

Idera's new release coincides with Microsoft's delivery of Windows 8 and Windows Server 2012, which feature full integration of the new PowerShell 3.0.

Read More

 

Not Ranked
Posts 6

Does version 4.6 actually support Powershell version 3?  The console still shows powershell version 2 when i execute $Host.  How do I get the powershell version 3 to show up as console window?

Top 25 Contributor
Posts 506
Microsoft MVP
Top Contributor

What do you get when you run $PSVersionTable?

Not Ranked
Posts 6

Name                                                    Value

----                                                         -----

CLRVersion                                         2.0.50727.5448

BuildVersion                                      6.1.7601.17514

PSVersion                                           2.0

WSManStackVersion                      2.0

PSCompatibleVersions                   {1.0, 2.0}

SerializationVersion                          1.1.0.1

PSRemotingProtocolVersion       2.1

Not Ranked
Posts 6

Name                                                    Value

----                                                         -----

CLRVersion                                         2.0.50727.5448

BuildVersion                                      6.1.7601.17514

PSVersion                                           2.0

WSManStackVersion                      2.0

PSCompatibleVersions                   {1.0, 2.0}

SerializationVersion                          1.1.0.1

PSRemotingProtocolVersion       2.1

Not Ranked
Posts 6

If I open powershell window I get the following.  Only get the 2.0 console in PowershellPlus.

Name                           Value
----                           -----
WSManStackVersion              3.0
PSCompatibleVersions           {1.0, 2.0, 3.0}
SerializationVersion           1.1.0.1
BuildVersion                   6.2.9200.16398
PSVersion                      3.0
CLRVersion                     4.0.30319.239
PSRemotingProtocolVersion      2.2

Top 25 Contributor
Posts 506
Microsoft MVP
Top Contributor

For a detailed explanation, look at Appendix A - Using with PowerShell v3 section in "PowerShellPlus Release Notes.pdf".

In short, you need to run:

"C:\Program Files\Idera\PowerShellPlus\Internal\PSPEditor.exe" -version 3

If the -version switch is not used, PowerShell Plus loads PowerShell 2.0 on Windows 7 or PowerShell 3.0 on Windows 8.

 

 

Top 10 Contributor
Posts 658
Idera Employee

The technical explanation is that Microsoft PS v3 is dependent on .Net 4.0 but also ships with PS v2. Since PowerShellPlus is still compiled with .Net 3.5 the default is use PS v2 at startup. We facilitate the switch by using a config file to tell the EXE to load with .Net 4 support and then the PS v3 engine will load. We also decided that since Windows 8 shipped with PS v3 that we would detect the OS on start and perform this switch automatically. Microsoft has shipped PowerShell v3 support in WMF v3 for Win7 and Windows Server 2008 R2, but it's a little harder to detect the PowerShell version that is installed since the registry keys are still legacy, so we decided to add the switch to give that control into the hands of the user.

Since this Config file (PowerShellPlus.exe.config) is used we use a launcher application (PSPEditor.exe) to perform this magic. This launcher is what uses the -version switch (same as is used by Microsoft PowerShell applications) to switch version support. 

Just as a side note, we also use this launcher to preserve the Console property settings on a per user basis.

 

Not Ranked
Posts 1

Just to elaborate a tad more:

the config file PowerShellPlus.exe.config is in %Program Files%\Idera\PowerShellPlus

After I to edit ed line 5 from

<supportedRuntime version="v2.0.50727"/></startup>

to

<supportedRuntime version="4.0"/></startup>

Next time I opened the .config file line 5 became just

    </startup>

The good news though is that PowerShell Plus loaded PS v. 3

 

Top 10 Contributor
Posts 658
Idera Employee

Don't edit the file. Use the -version switch and PSP will take care of putting the right file in place. There are two different copies of this file in the %Program Files%\Idera\PowerShellPlus\Internal directory. PSP startup uses some logic to determine which one to use.

Default on Win7 machine is PS v2 config unless you use the switch to copy v2 or v3 version.

On Win8 we automatically copy v3 unless you use the -version switch.

If you start mucking around with the config, the -version switch logic may fail.

If you are insure of whether it was edited incorrectly, then simple copy the version of the file from the Internal directory and start over using the -version switch.

 

Page 1 of 1 (10 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.