Highlighted
Gojira Absent Member.
Absent Member.
739 views

PowerShell Version Issue

Jump to solution

In trying to run some PowerShell scripts with HP SA 10.20 I am running into a problem.

The script needs version 4 or better of PowerShell but the detected version is 2.0.  Version 5 is actually installed.

If I run the PowerShell command "$PSVersiontable" on one Windows 2012 server it reports as shown:

Name                       Value
----                       -----
CLRVersion                 2.0.50727.8009
BuildVersion               6.1.7601.18606
PSVersion                  2.0
WSManStackVersion          2.0
PSCompatibleVersions       {1.0, 2.0}
SerializationVersion       1.1.0.1
PSRemotingProtocolVersion  2.1

Other servers report the correct version as shown:

Name                      Value
----                      -----
PSVersion                 5.0.10586.117
PSCompatibleVersions      {1.0, 2.0, 3.0, 4.0...}
BuildVersion              10.0.10586.117
CLRVersion                4.0.30319.42000
WSManStackVersion         3.0
PSRemotingProtocolVersion 2.3
SerializationVersion      1.1.0.1

Both servers are 2012 r12 with PowerShell 5.0 installed.

Why does one report version 2 of PowerShell and the other report version 5?

0 Likes
1 Solution

Accepted Solutions
Gojira Absent Member.
Absent Member.

Re: PowerShell Version Issue

Jump to solution

I found that if I removed the line <supportedRuntime version="2.0.50727"/> from C:\Program Files\Opsware\agent\bin\PsSasHost.exe.config that the problem would go away on the affected machines.

Not sure if this will lead to other problems, but we'll see...

View solution in original post

0 Likes
1 Reply
Gojira Absent Member.
Absent Member.

Re: PowerShell Version Issue

Jump to solution

I found that if I removed the line <supportedRuntime version="2.0.50727"/> from C:\Program Files\Opsware\agent\bin\PsSasHost.exe.config that the problem would go away on the affected machines.

Not sure if this will lead to other problems, but we'll see...

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.