title: PsExec could not start app: The system cannot find the file specified
body: <p>This question has been asked many times elsewhere.. but they are mostly about running things on a remote computer etc. Mine is much more straight forward.</p>
  
  <p>I got an app (let's call it app.exe), which runs by a service. When it runs by the service, it is ran by the SYSTEM user. </p>
  
  <p>However the app is acting weird, further when I run the same app by simply clicking on the .exe file, it runs it but with the logged in user account:</p>
  
  <p><a href="https://i.stack.imgur.com/sChP9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sChP9.png" alt="enter image description here"></a></p>
  
  <p>So I simply want to run <em>the same app</em> as system, that's where I found the psExec command. If I run the psExec command like so</p>
  
  <pre><code>c:\path\BOT&gt;psExec "*** Bot.exe"
  
  PsExec v2.2 - Execute processes remotely
  Copyright (C) 2001-2016 Mark Russinovich
  Sysinternals - www.sysinternals.com
  </code></pre>
  
  <p>it works just fine, but once i put the <code>-s</code> switch (ie to run as system).. it blows up:</p>
  
  <pre><code>c:\path\BOT&gt;psExec -i -s "*** Bot.exe"
  
  PsExec v2.2 - Execute processes remotely
  Copyright (C) 2001-2016 Mark Russinovich
  Sysinternals - www.sysinternals.com
  
  
  PsExec could not start *** Bot.exe on SAMERDERNAI5012:
  The system cannot find the file specified.
  </code></pre>
  
  <p>this <a href="https://superuser.com/a/979363/234141">answer</a> states that if the cmd window is ran as non-admin, then it should work. I tried that but nothing happend.</p>