remexec 無法連接,錯誤代碼為 10060

remexec 無法連接,錯誤代碼為 10060

我正在嘗試透過 remexec 在我的虛擬機器上執行命令。

VM有自己的IP位址,並且可以ping通,甚至共享資料夾也可以透過IP工作。

但 remexec 失敗:

C:\Users\User>remexec 192.168.72.133 -q -t 6000 -l admin -p admin "c:\temp\test.bat"
Opening connection to 192.168.72.133 failed: 10060

有任何想法嗎?可能出了什麼問題以及如何修復?

平:

>ping 192.168.72.133

Pinging 192.168.72.133 with 32 bytes of data:
Reply from 192.168.72.133: bytes=32 time<1ms TTL=128
Reply from 192.168.72.133: bytes=32 time<1ms TTL=128
Reply from 192.168.72.133: bytes=32 time<1ms TTL=128
Reply from 192.168.72.133: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.72.133:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

虛擬機器IP配置:

C:\temp>ipconfig -all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : VMHost
   Primary Dns Suffix  . . . . . . . : domen.x
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : domen.x

Ethernet adapter Local Area Connection 3:

   Connection-specific DNS Suffix  . : localdomain
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection
   Physical Address. . . . . . . . . : <hidden for security reason>
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c08:71ca:327b:df7f%17(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.72.133(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 20. july 2015 11:19:10
   Lease Expires . . . . . . . . . . : 21. july 2015 11:25:29
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . : <hidden for security reason>
   DHCPv6 IAID . . . . . . . . . . . : <hidden for security reason>
   DHCPv6 Client DUID. . . . . . . . : <hidden for security reason>

   DNS Servers . . . . . . . . . . . : 192.168.72.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

答案1

一些想法

  • 使用 RPCPing 確保 RPC 連接埠開啟
  • 暫時禁用防火牆
  • 試試 Sysinternals 的 PSEXEC。要嘗試的命令是:\\PSEXEC 192.168.72.133 -c -d -f -u admin -p admin "c:\temp\test.bat"

答案2

問題解決了。原來是防火牆沒有關閉。透過向執行服務應用程式的連接埠 512 新增規則來解決。

相關內容