从 macOS 终端,当我执行时:
pwsh -command "Enter-PSSession myhost"
我从 PowerShell 收到错误:
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.
我花了 2 个小时才找到解决方案。我要回答我自己的问题。