6
我正在使用psexec在服務器上運行exe。 該命令運行正常,但在本地控制檯上沒有輸出。使用PSEXEC不會返回遠程任務的輸出
這是我使用的命令:這將導致
psexec.exe \\my-machine ping localhost
:
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
ping exited with error code 0.
,如果我嘗試運行然而,這localy,它工作正常
psexec.exe \\localhost ping localhost
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Pinging my-machine.mydomain.com [1.1.1.1] with 32 bytes of data:
Reply from 1.1.1.1: bytes=32 time=2ms TTL=128
Reply from 1.1.1.1: bytes=32 time<1ms TTL=128
Reply from 1.1.1.1: bytes=32 time<1ms TTL=128
Reply from 1.1.1.1: bytes=32 time<1ms TTL=128
Ping statistics for 1.1.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 0ms
ping exited on localhost with error code 0.
它不適合我。我嘗試了fqn和沒有。是否有任何其他工具不同於psexec.exe – Maverick 2013-01-10 18:46:17