title: Access denied exception when trying to execute an exe on remote machine
body: <p>I am trying to execute an exe on machine B from machine A. I have logged on to machine A as userx and trying to run the exe on machine B as usery.</p>
  
  <p>usery is system admin on machine A as well as B.</p>
  
  <p>i tried using PsExec to execute an exe as well as invoke-command to execute a script in both the case am getting access denied exception in spite on passing credential of usery in both case</p>
  
  <pre><code>invoke-command -computername "machineB" -scriptBlock { c:\psscript.ps1 } -credential $useryCred
  
  psExec \\machineB c:\exec.exe -u usery -p ypass
  </code></pre>
  
  <p>what am i doing wrong ? </p>
  
  <p>Update:</p>
  
  <p>simple scripts gets executed with out any hassle but this script is trying to create a process on remote machine under the userY's credential !</p>
  
  <p>is it something related to mapping of incoming request to different user say guest ?</p>
  
  <p>regards,
  jeez</p>