Copy a file to a target computer using Remote Command

4/26/2018 5124 Contributors

If you want to copy a file (or files) to target computers you do have the option of using the Remote Command feature. 

Here is an example where I use Remote Command to copy a shortcut to the All Users (or Public) desktop of a target machine. 

In this case I simply had the shortcut file, java.lnk, available on a file share. 

This first example shows a Remote Command performed on two computers, TimTimmy and Trixie.



Incidentally, if you try this command against a Windows XP target it will fail since the %PUBLIC% variable isn't set. To copy files to the All Users desktop on XP I used the %AllUsersProfile%. (see below)