New-PSSession fails - WSMan client library not found

See original GitHub issue

Steps to reproduce

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $UserCredential -Authentication Basic -AllowRedirection

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 -ConfigurationName Microsoft.Exchange -Conne ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.PowerShell.Commands.NewPSSessionCommand

Environment data

Fresh installation on my macOS Sierra 10.12.6 without any previous versions. powershell-6.0.0-beta.5-osx.10.12-x64.pkg

> $PSVersionTable

Name                           Value                                                                                                 
----                           -----                                                                                                 
PSVersion                      6.0.0-beta                                                                                            
PSEdition                      Core                                                                                                  
GitCommitId                    v6.0.0-beta.5                                                                                         
OS                             Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/REL...
Platform                       Unix                                                                                                  
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                               
PSRemotingProtocolVersion      2.3                                                                                                   
SerializationVersion           1.1.0.1                                                                                               
WSManStackVersion              3.0     

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
iSazonovcommented, Aug 22, 2018

Yes, you can test with latest nightly builds.

1reaction
kai-hcommented, Aug 22, 2018

@iSazonov - Yes, 6.0.4 seems to work correctly.

PS /Users/kai> $PSVersionTable                                                  

Name                           Value                                           
----                           -----                                           
PSVersion                      6.0.4                                           
PSEdition                      Core                                            
GitCommitId                    v6.0.4                                          
OS                             Darwin 17.7.0 Darwin Kernel Version 17.7.0: T...
Platform                       Unix                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                         
PSRemotingProtocolVersion      2.3                                             
SerializationVersion           1.1.0.1                                         
WSManStackVersion              3.0                                             


PS /Users/kai> office365.ps1                                                    

PowerShell credential request
Enter your credentials.
User: admin@example.onmicrosoft.com
Password for user admin@example.onmicrosoft.com: ***************

WARNING: The names of some imported commands from the module 'tmp_fhijji2e.j4w' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.                                                                                                       ModuleType Version    Name                                ExportedCommands      ---------- -------    ----                                ----------------      
Script     1.0        tmp_fhijji2e.j4w                    {Add-AvailabilityA...


PS /Users/kai> 
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "no supported WSMan client library was found." with ...
I get error from PowerShell: Enter-PSSession: This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is ...
Read more >
Powershell on macOS WSMan issue - Oasys Networking
Powershell on macOS WSMan issue ... This parameter set requires WSMan, and no supported WSMan client | library was found.
Read more >
Powershell 7 - WSMAN issue - Tech Support - MPU Talk
The error is: “New-PSSession: This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not ...
Read more >
Local New-PSSession fails in official powershell linux ...
In both alpine and debian I am getting error: This parameter set requires WSMan, and no supported WSMan client library was found. WSMan...
Read more >
PowerShell Remoting on Rapsberry Pi
New-PSSession : This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found