By Ellie / Last Updated December 27, 2023

Copy a non-exe file to a remote machine using PsExec

“I copied and ran an exe file on a different machine using PsExec. Along with adding the xml file to the remote server, I also want to copy the xml file to a distant machine. The command returns an error message informing the user that The system cannot find the file specified. Why PsExec copy file to remote computer access denied?”

-Question from Spiceworks

The System Cannot Find the Path

Can PsExec copy file to remote computer?

PsExec is a tool that lets you execute processes on remote systems. It is not designed to copy files across machines, but to copy the program it is going to run remotely. With the specific -c switch, PsExec will copy any local program to the remote computer before execution.

But if you use the -c switch and don’t specify an executable file, PsExec will still copy the file but you’ll receive an error stating The system cannot find the file specified. This happens because PsExec will always attempt to run the file you copy.

In conclusion, it is possible to make PsExec copy file to remote computer, but using PSexec for simply copying the files is pointless, as it is designed for running programs on remote computers.

How to make PsExec copy file to remote computer

Anyway, let’s see how to copy file to remote computer using PsExec. Before starting, there are three prerequisites:

  • Turn on file and printer sharing (remote computer)
  • Enable ($admin)administrative share (remote computer)
  • Get the local account’s credential (remote computer)

Step 1. Download PsExec on the computer that will be running the remote commands.

Step 2. Right-click on the ZIP file downloaded and select Extract All.

extract-all-files

Step 3. Open the folder where the extracted file is located. Enter “cmd” in the search box and then press Enter.

search-cmd

Step 4. Then the Command Prompt in that folder will open. You can now run commands through PsExec.

cmd-pstools

Here's a PsExec copy file to remote computer example. Maybe you want to run an exe file that is located in your local computer’s C: Tools folder on a different computer. Use the following syntax to accomplish this:

PsExec Remote File Transfer

Note: Replace the “REMOTECOMPUTER” with the PC name of your remote computer. And replace “program”  with the name of the program you would like to run on the remote computer.

 

Get a more convenient & effective file transfer tool: AnyViewer

If you need to copy files to remote computers before using PsExec, you can use the Copy-Item PowerShell cmdlet instead. Besides, you can also use a more convenient and effective GUI file transfer tool like AnyViewer. Why should you choose AnyViewer among other options?

Unattended file transfer. It supports file transfer from or to an unattended remote computer.
GUI. It provides users with a graphical user interface, making it simpler for anyone to move files compared with command-line interfaces.
File transfer size. For a free account, the maximum size of a single file is 100 MB, and the maximum number of files to be transferred at one time is 100.
File transfer speed. The max file transfer speed for a free account is 500 KB/s. According to user feedback, the actual transfer speed is normally faster when the two devices are on the same network.

Step 1. Download, install, and launch AnyViewer 3.0 or above on both Windows computers. If your version is lower, please upgrade first. 

Download Freeware Win 11/10/8.1/8/7
Secure Download

Step 2. On the Controller computer, go to Log in, and then click Sign up. (If you already have signed up on its official website, you can log in directly.)

Log in AnyViewer.png

Step 3. Fill in the signup information.

Sign Up For AnyViewer

Step 4. Then you can see you successfully logged in to AnyViewer. Your device will automatically be assigned to the account you’ve logged in to. 

Free Editions

Step 5. Choose your target computer, and then click File Transfer.

File Transfer AnyViewer

Tips: You can also click One-click control to achieve unattended remote access to your computer. Then you can completely control it just like you’re sitting in front of it. After the connection is successful, you can also click the Files button in the menu bar to transfer files.

Files

Step 6. Then a File Transfer dialog box will appear. You’re able to transfer files between devices freely by clicking the arrows after choosing the target files. You can also double-click the target file to achieve transfer.

Transfer Word Document

Notes:✎...
To transfer files more freely, it is highly recommended to upgrade your account to a professional or enterprise plan. Here is what a professional or enterprise plan can bring to you:
Faster file transfer speed. Transfer speed for a free account is 500 KB/s, and for a paid account is up to 10 MB/s.
Increasing numbers of files are being transferred at once. For a free account, 100 files can be transferred at a time; for a paid account, this number is unlimited.
Larger size of a single file that can be transferred. The maximum size of a single file that can be transferred for the free account is 100 MB, and for a paid account is 1 TB.

 

Closing words

This post primarily introduces how can PsExec copy file to remote computer and how to make PsExec copy file to remote computer. If you would like a more convenient and effective way to transfer files remotely with a GUI, you can use the freeware AnyViewer. With it, you can achieve remote file transfer with ease.