Author: neilmcintyre
Subject: psexec timeout problem
Posted: 14 February 2014 at 7:47am
I found this topic because I had a similar problem.
Subject: psexec timeout problem
Posted: 14 February 2014 at 7:47am
I found this topic because I had a similar problem.
I wanted to use Psexec to sequentially execute a batch file on multiple pc's. The batch would cause the machine to release and then renew it's DHCP lease, which I would expect to result in the target machine acquiring a new address. A similar example would be to cause the machine to restart.
Anyway, PSexec connects, executes the batch, and then loses connectivity with the machine (as expected) but because the command did not execute completely before the disconnection, Psexec will wait a very long time before telling me that the host no longer exists.
I want to tell Psexec to 'give up after 1 second' in the event that the remote computer becomes unresponsive. Then I can use Psexec to cause a range of computers to renew their DHCP leases in a short amount of time.