linux - New-PSSession:此参数集需要 WSMan,未找到支持的 WSMan 客户端库。CENTOS/RHEL 8
问题描述
所以我在服务器上工作,我已经在上面安装了 powershell,当我尝试运行这个命令时
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
我收到以下错误
New-PSSession:此参数集需要 WSMan,未找到支持的 WSMan 客户端库。此系统未安装或不可用 WSMan。
**尝试使用这些命令安装 WSman 模块仍然没有修复它
安装-模块-名称 PSWSMan -Force
安装-WSMan**
Name Value
---- -----
PSVersion 7.1.4
PSEdition Core
GitCommitId 7.1.4
OS Linux 4.18.0-305.10.2.el8_4.x86_64 #1 SMP Mon J…
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
我是一个完整的初学者,任何指导都会非常有帮助
解决方案
推荐阅读
- html - 有问题
- c# - 来自用户控件的 MainForm 上的动画网格边距
- python - 媒体文件未在 cpanel 上的 django 应用程序中提供
- sql - Hive 查询:匹配字符串数组中的列值以制作标志
- c# - 序列化包含列表的对象时 ProtoBuf-net 无效行为
- vba - 防止用户在加载时向 Esc 发送垃圾邮件以关闭表单?
- android - 将应用程序限制为小屏幕,2.7 英寸 (240 x 320) 像素分辨率
- php - 不再支持 PayPal IPN 和 fsockopen?
- php - PHP:为什么在函数调用中使用引用时数组没有改变?
- java - 部署程序集和 CLASSNOTFOUND Java/MySQL 问题