Run a batch file on remote host using PsExec
<p>I am experimenting with PsExec and I am trying to run a batch file on a remote host from a local PC on the same LAN.  The batch file has been tested on the local PC and works fine.  I managed to connect to the remote host via PsExec using the below commands.</p>

<pre><code>PsExec -u Username -p Password \\Remote_Host_IP C:\Path_to_batch_file\Batch.bat
</code></pre>

<p>I am getting this error:-</p>

<p>PsExec could not start C:\Path_to_batch_file\Batch.bat on Remote_Host_IP:
The system cannot find the file specified.</p>

<p>This is probably occurring since it is searching for the file on the remote host while the file is located on the local PC thus not finding the file.
I do not want to make any manual intervention on the remote host.</p>

<p>After trying hard to find the correct commands on the net I cannot solve this issue.</p>