0
点赞
收藏
分享

微信扫一扫

配置Powershell远程连接到其它域名主机

1、首先先确认本地和远端 WinRM(Windows Remote Management) 服务有没有开启

2、确认远端有开启PS远程用 PowerShell 远程处理: Enable-PSRemoting

3、将远程客户端的地址添加到受信任主机列表中  以下几种方式进行

通过将所有远程客户端的 IP 地址添加到受信任的主机列表中,修改 WSMan 受信任主机的设置。可使用以下命令之一完成此操作:

  • ​Set-item wsman:localhost\client\trustedhosts -value *​​ (将所有计算机添加为受信任主机)
  • ​Set-item wsman:localhost\client\trustedhosts -value Computer​​ (仅将计算机添加到受信任主机)
  • ​Set-item wsman:localhost\client\trustedhosts -value *.domain.com​​ (添加指定域中的所有计算机)
  • ​Set-item wsman:localhost\client\trustedhosts -value 10.10.10.1​​ (将 IP 地址为 10.10.10.1 的远程计算机添加到受信任主机列表)。



举报

相关推荐

0 条评论