title: Copy a non exe File to a Remote Machine
body: <p>I used PsExec to copy and run an exe file in a remote machine. I also want to copy a xml file to remote machine. I am able to do this way</p>
  
  <pre><code>PsExec.exe -d -c \\someserver  c:\somefile.xml 
  </code></pre>
  
  <p>The above command throws error saying system cannot find the file specified but adds the xml file to remote server.<br>
  Do u know any better way of copying files to remote server.<br>
  Is there any PsTool available for that?<br>
  Or an option in PsExec ?</p>
  
  <p>Edit: (Answer)
  I found out that using Powershell we can copy file to remote machines and it worked. </p>