Skip to content

New-PSSession does not find WSMan client library on RHEL72 #7485

Description

On RHEL 7.2 WSMan remoting does not work. It does not find the WSMan client library.
It works for other distros like Debian 8.

Steps to reproduce

 $session = New-PSSession -URI $uri -ConfigurationName Microsoft.Exchange -Credential $cred -Authentication Basic -AllowRedirection

Expected behavior

Connection succeeds

Actual behavior

New-PSSession : This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.
At line:1 char:12
+ $session = New-PSSession -URI $uri -ConfigurationName Microsoft.Excha ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ResourceUnavailable: (:) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.PowerShell.Commands.NewPSSessionCommand

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.4
PSEdition                      Core
GitCommitId                    v6.0.4
OS                             Linux 3.10.0-862.3.2.el7.x86_64 #1 SMP Tue May 15 18:22:15 EDT 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. dantraMSFT commented on Aug 9, 2018

    @dantraMSFT
    Contributor

    The underlying problem is the links for libcrypto.so.1.0.0 and libssl.so.1.0.0 were not created by package.psm1. This occurs when building directly on redhat; something we typically do not do; we build on Centos and use it on redhat. See the logic for setting IsRedHatFamily in Get-EnvironmentInformation
    A possible fix is to add an explicit IsRedHat variable and detection then update IsRedHatFamily to include it in the decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions