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
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
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
Expected behavior
Actual behavior
Environment data