🇬🇧 | 🇩🇪 | 🇫🇷 | 🇪🇸 | 🇨🇳 | 🇸🇦
我们没有DLL,但我们有:
Windows文件分析器和在线快速反病毒

一个简约的界面,具有快速搜索,方便的上传和干净的部分结构.

🛡️🔍 快速验证你的档案,只需要放上这个页面.
病毒检查,哈希,签名验证,架构,人工智能信息.

如何修复 "WinRM客户端无法处理请求.指定使用身份验证机制的标志不正确. "

本全面指南提供了Windows远程管理 (WinRM) 认证标记错误的描述和步骤解决方案.


没有.

This error occurs when a WinRM client attempts to establish a remote connection to a target server, but the authentication method specified by the client is either disabled, unsupported, or mismatched on the remote server.

常见的原因


逐步修复问题

为了解决问题,请遵循以下解决方案.您将需要客户端和远程机器的管理员权限.

解决方案1:启用必要的身份验证类型

You must ensure both the client and server have the required authentication protocols enabled (usually Negotiate 这里是我的家. Kerberos ) 没有.

  1. 打开 PowerShell as an Administrator 在客户机上.
  2. 运行下列命令来检查您当前的客户端身份验证设置:
    Get-ChildItem WSMan:\localhost\Client\Auth
  3. 看看输出. Negotiate 或是 Kerberos 已设置为 False 通过运行:
    Set-Item WSMan:\localhost\Client\Auth\Negotiate -Value $true
    Set-Item WSMan:\localhost\Client\Auth\Kerberos -Value $true
  4. 如果您正在配置远程机器,请重复服务/服务器侧设置:
    Set-Item WSMan:\localhost\Service\Auth\Negotiate -Value $true
    Set-Item WSMan:\localhost\Service\Auth\Kerberos -Value $true
  5. 重新启动 WinRM 服务以应用更改:
    Restart-Service WinRM

解决方案2:配置可信托主机 (对于工作组环境)

如果计算机不在同一Active Directory域,则客户机将拒绝连接,除非服务器被明确信任.

  1. 打开 PowerShell as an Administrator 在客户机上.
  2. 将远程计算机的IP地址或主机名称添加到您的可信主机列表中:
    Set-Item WSMan:\localhost\Client\TrustedHosts -Value "REMOTE_COMPUTER_IP_OR_NAME"

    (注:您可以使用 to trust all hosts if you are in a secure private network, though this is less secure: 设置项 WSMan:\localhost\Client\TrustedHosts -Value " "`)

  3. 按下 Y 并且击中了 Enter 当被提示确认更改时.

解决方案3:在命令中明确指定身份验证类型

在启动远程连接时,手动指示身份验证标志,而不是让Windows猜测.

  1. 在使用时 Enter-PSSession 或是 Invoke-Command 添加一个 -Authentication 参数
  2. 域环境的示例 (默认):
    Enter-PSSession -ComputerName "RemotePC" -Authentication Negotiate
  3. 工作组环境的示例 (需要远程机器的本地管理员凭证):
    $cred = Get-Credential
    Enter-PSSession -ComputerName "Remote_IP" -Authentication Basic -Credential $cred

解决方案4:允许未加密的流量 (如果没有使用HTTPS)

如果您通过HTTP (端口5985) 而不是HTTPS (端口5986) 进行连接,如果未加密的流量政策严格,WinRM可能会阻止交换.

  1. 打开 PowerShell as an Administrator.
  2. 启用客户端的未加密流量:
    Set-Item WSMan:\localhost\Client\AllowUnencrypted -Value $true
  3. 在服务器上启用未加密的流量:
    Set-Item WSMan:\localhost\Service\AllowUnencrypted -Value $true
  4. 重新启动 WinRM 服务:
    Restart-Service WinRM
ERROR_WSMAN_CLIENT_ENUM_RECEIVED_TOO_MANY_ITEMS | ERROR_WSMAN_MULTIPLE_CREDENTIALS | ERROR_WSMAN_CLIENT_CREDENTIALS_FOR_DEFAULT_AUTHENTICATION | ERROR_WSMAN_CLIENT_USERNAME_AND_PASSWORD_NEEDED | ERROR_WSMAN_CLIENT_INVALID_CERT_DNS_OR_UPN

可能有一些错误.. Learn Microsoft