Powershell Chef recipe使用刀引导失败,但在windows目标节点中使用Chef客户端成功

Powershell Chef recipe使用刀引导失败,但在windows目标节点中使用Chef客户端成功,powershell,active-directory,chef-infra,powershell-remoting,chef-windows,Powershell,Active Directory,Chef Infra,Powershell Remoting,Chef Windows,我正在使用适用于windows server 2012 r2的Chef-server-11.04和Chef client 11.12.4-1。我正在尝试在windows客户端上执行Active directory powershell cmds。当我使用时,配方执行失败 刀引导windows winrm 10.XX.XXX.XX-x用户名-p xxxxxxx-r Adpowershell 或 *刀子winrm名称:example.co.in chef client-r Adpowershell-

我正在使用适用于windows server 2012 r2的Chef-server-11.04和Chef client 11.12.4-1。我正在尝试在windows客户端上执行Active directory powershell cmds。当我使用时,配方执行失败

刀引导windows winrm 10.XX.XXX.XX-x用户名-p xxxxxxx-r Adpowershell

*刀子winrm名称:example.co.in chef client-r Adpowershell-x用户名-p xxxxxxx

该错误无法与服务器联系。这可能是因为此服务器不存在、当前已关闭或没有运行Active Directory Web服务

对于Active directory powerwshell cmds以外的其他powershell cmds,刀子命令成功

但当我在节点上本地使用chef客户端尝试时,配方成功执行

我已经参考了关于这个的各种链接。但是找不到适用于Windows 2012 r2的任何解决方案。 有人能告诉我在您的服务器上运行此问题的解决方案吗

winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow  

我无法给出最终答案,但我怀疑这是由于windows文档中的凭证重播(也称为CredSSP)造成的。