windows – 使用winrm连接到远程服务器,而不将服务器添加到Trust
发布时间:2020-12-14 02:54:13 所属栏目:Windows 来源:网络整理
导读:我一直在努力应对winrm和TrustedHosts,但无济于事.经过一些实验,我发现winrm / config / client的这个字段限制为多达1023个符号,这是不够的,特别是如果他们的ipv6添加主机. 我引用 Installation and Configuration for Windows Remote Management:当无法建
我一直在努力应对winrm和TrustedHosts,但无济于事.经过一些实验,我发现winrm / config / client的这个字段限制为多达1023个符号,这是不够的,特别是如果他们的ipv6添加主机.
我引用 Installation and Configuration for Windows Remote Management:当无法建立相互身份验证时,应设置可信主机列表. 文本也在同一文件中说明:工作组中的其他计算机或不同域中的计算机应添加到此列表中.所以我认为这意味着只要两台计算机在同一个域中,我就可以使用winrm从另一台计算机中访问其中一台. 我试图将两台计算机添加到测试域并执行:
从其中一个到另一个,但由于错误而失败: WSManFault Message = The WinRM client cannot process the request. If the authentication scheme is different from Kerberos,or if the client computer is not joined to a domain,then HTTPS transport must be used or the destination machine must be ad ded to the TrustedHosts configuration setting. Use winrm.cmd to configure Truste dHosts. You can get more information about that by running the following command : winrm help config. Error number: -2144108316 0x803380E4 The WinRM client cannot process the request. If the authentication scheme is dif ferent from Kerberos,or if the client computer is not joined to a domain,then HTTPS transport must be used or the destination machine must be added to the Tru stedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. You ca n get more information about that by running the following command: winrm help c onfig. 将192.168.100.1添加到TrustedHosts后,上面的查询成功.所以我的问题是:是否可以在两台主机之间使用winrm而无需修改TrustedHosts?将可信主机设置为*不是我的选择. 解决方法
如果两台计算机位于同一个域中,则应该能够使用ComputerName而不是IP地址.当你使用IP地址时,你几乎被迫使用我所见过的TrustedHosts.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ms-media-foundation – Microsoft Media Foundation的状态
- Windows cmd echo/pipe最后会增加额外的空间 – 如何修剪它
- 使用Windows SDK 8.1在Windows 7上进行开发
- batch-file – 用于循环的DOS批处理文件中的变量赋值问题
- Microsoft SQL Server 2008 R2 安装遇到的问题
- windows – QProcess无法执行外部可执行文件
- winapi – 捕获Win32消息
- IIS密钥:计算机密钥,WAS密钥,IIS配置密钥
- 如何使用cygwin / mingw在Windows上编译PHP扩展?
- windows-server-2003 – 使用ASP.NET InProc会话加载平衡的