Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 284 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error "no supported WSMan client library was found." with macOS pwsh

#1
From macOS Terminal, when I execute:

pwsh -command "Enter-PSSession myhost"

I get error from PowerShell:

```` lang-none
Enter-PSSession: This parameter set requires WSMan, and no supported WSMan client
library was found. WSMan is either not installed or unavailable for this system.
````


I've spent 2 hours to find a solution. I am going to answer my own question.
Reply

#2
Root cause of the issue is Powershell dependency to previous openssl version. It is apparently not easy to fix according to GitHub issue [PowerShell/#5561](

[To see links please register here]

).

Here is the workaround I have found:

curl -L

[To see links please register here]

\
-o openssl.rb
brew install ./openssl.rb
Reply

#3
Here's what I did:

pwsh -Command 'Install-Module -Name PSWSMan'
sudo pwsh -Command 'Install-WSMan'
Reply

#4
See from Matt Thornton: [Exchange Online Powershell on macOS][1]

Tested below on MacOS 11.6

1. `brew install powershell`
2. `brew install openssl`
3. `pwsh`
4. `Install-Module -Name PowerShellGet`
5. `Install-Module -Name PSWSMan`
6. `sudo pwsh -Command 'Install-WSMan'`


[1]:

[To see links please register here]

Reply

#5
This followings work on Mac without issue.
```
pwsh -Command 'Install-Module -Name PSWSMan'

sudo pwsh -Command 'Install-WSMan'
```
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through