Powershell – winrm使用ip地址而不是计算机名称

是否可以使用IP地址而不是计算机名称来设置winrm

有问题的电脑只有

我只能在同一个域中为这台计算机设置winrm:

winrm s winrm/config/client '@{TrustedHosts="demox"} 

我想连接的计算机不能通过计算机名称访问。

您可以将IP地址添加到TrustedHost列表中:

 winrm s winrm/config/client '@{TrustedHosts="10.1.2.1"}' 

使用这个我设法连接到一个不同的域的Windows 2003服务器,我可以使用,NETBIOS或FQN名称昨天连接到。

您应该可以通过IP添加机器:

Windows远程pipe理的安装和configuration