当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] WinRM 客户端无法处理请求

作者:精品下载站 日期:2024-12-14 13:30:34 浏览:15 分类:玩电脑

WinRM 客户端无法处理请求


[玩转系统] WinRM 客户端无法处理请求

当您尝试连接到远程 PowerShell 会话时,您可能会看到以下错误消息:

Enter-PSSession : Connecting to remote server 172.31.24.221 failed with the
  following error message : The WinRM client cannot process the request.
  Default authentication may be used with an IP address under the following
  conditions: the transport is HTTPS or the destination is in the TrustedHosts
  list, and explicit credentials are provided.
  Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts
  list might not be authenticated. For more information on how to set TrustedHosts
  run the following command: winrm help config.
  For more information, see the about_Remote_Troubleshooting Help topic.

当您尝试使用 IP 地址而不是主机名或 FQDN 进行连接时,会引发此错误消息:

Enter-PSSession 172.31.24.221

要使用 IP 地址,必须使用基于 HTTPS 的 WinRM 或将 IP 地址添加到目标系统上的 TrustedHosts 列表中。

这些步骤主要在尝试从基于工作组的计算机进行连接时相关。

在 Active Directory 中,WinRM 将使用 Kerberos 进行身份验证,这要求您使用要连接的目标系统的主机名或 FQDN,例如:

Enter-PSSession FILESRV03

通过使用主机名或 FQDN,您将不再收到错误消息。

轻松 Office 365 管理

如果您专门使用远程 PowerShell 来触发 Azure AD 同步,则应考虑改用 Easy365Manager。

Easy365Manager 是一款适用于 AD 用户和计算机的轻量级管理单元,可让您在 AD 用户管理过程中管理 Office 365 邮箱和许可证。

使用 Easy365Manager,您可以直接从用户属性触发 Azure AD Connect 同步:

[玩转系统] WinRM 客户端无法处理请求

Azure AD Connect 的轻松同步只是 Easy365Manager 中提供的众多功能之一。

在此处下载 30 天无限制试用版。它不会对您的 AD 进行任何更改,只需几分钟即可下载、安装和配置:

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯