2009-08-03 5 views
6

psexec을 사용하여 서버에서 exe를 실행하고 있습니다. 명령이 실행되지만 로컬 콘솔에 출력이 없습니다.PSEXEC를 사용하면 원격 작업에서 아무런 결과도 출력하지 않습니다.

psexec.exe \\my-machine ping localhost 

결과 :

내가 사용하고있는 명령입니다 I 그러나이 및 localY 실행하려고하면

PsExec v1.94 - Execute processes remotely 
Copyright (C) 2001-2008 Mark Russinovich 
Sysinternals - www.sysinternals.com 

ping exited with error code 0. 

, 그것을 잘 작동

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. 

답변

4

그것을 이 경우 (적어도이 경우) psexec을 시작할 때 정규화 된 컴퓨터 이름을 사용해야한다는 것을 알 수 있습니다. 나는 이것이 왜인지를 알지 못했지만 트릭을합니다.

psexec.exe \\my-machine.mydomain.com ping localhost 

이제 모든 명령 출력이 반환됩니다.

+1

나를 위해 작동하지 않습니다. 나는 fqn과 함께 시도해 보았다. psexec.exe와 다른 다른 도구가 있습니까 – Maverick

+0

그것은 나를 위해 어느 쪽이든 작동합니다. – aphoria

+0

5 년 동안 나는 MS가 이전 버전과의 호환성을 유지할 것이라고 생각할지라도, 모든 것이 바뀌 었다고 생각합니다 .-) –

관련 문제