title: Error using PSEXEC to start a file on a remote computer
body: <p>I have created a small script that initiates <strong>PSEXEC</strong> to run a file (a registry key) on a remote computer that is in the domain; however, when I run the script I receive an error indicating that "the system cannot find the file specified."</p>
  
  <p>Below is my script:</p>
  
  <pre><code>@echo off
  psexec \\PRECDP19425 -u PRECDP19425\WAKE -p &lt;password&gt; -h -i -d C:\Users\WAKE\Documents\AllowNetwork.reg
  pause
  </code></pre>
  
  <p>I have double-checked the location to make sure I wasn't losing my mind and typed something incorrectly, yet that doesn't seem to be the case. The path is correct, I'm just not sure what is causing the script to fail.</p>
  
  <p>The exact error I receive is:</p>
  
  <blockquote>
    <p>PsExec could not start C:\Users\etc on PRECDP19425</p>
    
    <p>The system cannot find the file specified.</p>
  </blockquote>
  
  <p>Any help would be much appreciated.</p>