对于 Dell iDRAC 调用,Winrm 错误 : The HTTP error (12152) is: The server returned an invalid or unrecognized response.

标签 winrm

我正在调用 Ws-Management 调用来与 Dell Server R620 上的 iDRAC 交互。 由于我使用的是 Windows 机器,因此我为此目的调用 Windows WinRM 命令。

命令: winrm e http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_PhysicalDiskView -u:[用户名] -p:[密码] -r:https://[drac IP]/wsman -SkipCNCheck -SkipCACheck -encoding:utf-8 -a:basic

所以我间歇性地收到以下错误响应:


Message = WS-Management cannot process the request. The operation failed because of an HTTP error. The HTTP error (12152) is: The server returned an invalid or unrecognized response .

错误号:-2147023901 0x800703E3 由于线程退出或应用程序请求,I/O 操作已中止。


我已经检查了wireshark来监控网络,并看到一致的帧检查序列不正确错误,但这是间歇性的

有人经历过类似的事情吗?

我尝试过: 1.禁用机器上的防火墙 2. 尝试多台机器执行同一个命令

最佳答案

我设法通过禁用防病毒软件的请求过滤功能来使其工作。 例如,Avast 为 webShield 提供了一种名为 HTTPS 扫描的功能。此外,QUIC 扫描仪几乎可以做同样的事情。

最后,我发现这个主题解决了我在目标系统上使用 Avast 的问题: https://mikefrobbins.com/2012/06/21/welcome-to-powershell-hell/

关于对于 Dell iDRAC 调用,Winrm 错误 : The HTTP error (12152) is: The server returned an invalid or unrecognized response.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24916004/

相关文章:

powershell - 通过PSSession发送文件

powershell - 远程Powershell返回值

Powershell - 不在域管理员帐户下运行时调用命令访问被拒绝

powershell - 使用 Connect-WSMan 会出现错误 : It cannot determine the content type of the HTTP response from the destination computer

powershell - 通过 PowerShell + WinRM 传递双引号

java - 在 URL 上的 Conduit 上检测到 Winrm4j 授权循环,领域为 "null"

linux - Windows是否可以进行无密码身份验证

powershell - 使用 Session 和 CredSSP 的 PSRemoting 错误

ruby - ChefDK - WinRM 在提供域凭据时切换到基本身份验证。

linux - 在 Linux 主机上使用 winrm 通信器