This post mainly introduces how to remotely run programs on another computer using free remote desktop software, PsExec, PowerShell remoting respectively.
“Sometimes, I need to work remotely to deal with some urgent tasks. Some of these tasks require me to open specific files or run programs on my office computer from home. So can anyone tell me how to remotely run programs on another computer?”
Here we listed three ways to remotely run programs on another computer. You can do remote computer management on Windows 10, 11 via free remote desktop software, PsExec, and PowerShell remoting respectively.
Remote desktop software enables you to control and access other machines from any location. You can choose free and easy-to-use remote desktop software, for example, AnyViewer, to remotely run programs on another computer. Next, let’s see how this works.
Step 1. Download, install and launch AnyViewer on both computers.
Step 2. Go to Log in, and then click Sign up. (If you already have signed up on its official website, you can log in directly.)
Step 3. Fill in the signup information.
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.
Step 5. Log in to the same AnyViewer account on the two devices, then you can achieve a direct connection by clicking One-click control.
Step 6. Then you can run any program on the host computer as if you’re sitting in front of it.
Another way is to run programs on a remote computer via PsExec, which is a tool that lets users execute processes on remote systems with commands sent via Command Prompt. PsExec can be used to not only manage processes on the remote computer but also to redirect a program’s console output to the local computer, making the process appear to be operating locally. The way how to use PsExec can be divided into four parts:
Of which the first three parts are set up process, once finished, you can use PsExec to take control of another computer and use the syntax of PsExec to type effective commands to run specific programs.
For example, “-i” is a PsExec switch that allows you to bring up programs for the remote computer. If you want to bring up a notepad window on a remote computer, you can run the following command:
> psexec -i \\REMOTECOMPUTER notepad
The “REMOTECOMPUTER” here refers to the name of the remote computer. For example, if the remote computer is contosodc1, then you need to enter the following command to open Notepad on the remote computer:
The last way is to run programs on a remote computer via PowerShell remoting. PowerShell remoting allows you to access entire PowerShell sessions on remote Windows systems and conduct PowerShell commands. Before using it, you also need a few setup steps on the remote computer.
Step 1. Right-click Start, then choose Windows PowerShell (Admin).
Step 2. In the PowerShell window, type the following cmdlet, and then hit Enter:
Enable-PSRemoting -Force
Step 3. Type in the following cmdlets in PowerShell respectively:
Set-Item wsman:\localhost\client\trustedhosts *
Restart-Service WinRM
Step 4. Then you can start a remote session by entering the following cmdlet:
Enter-PSSession -ComputerName COMPUTER -Credential USER
Remember to replace “COMPUTER” with the name or IP address of the remote computer and “USERNAME” with the username you want to run the command as on the remote computer.
For example, both the “COMPUTER” and “USERNAME” of the remote computer are 10.0.0.22, and you want to view the contents of the C:\ directory on it.
How to remotely run programs on another computer to do remote computer management on Windows 10? Here we introduced three ways. It can be found by comparing the three that AnyViewer provides you with the easiest and the most intuitive way to remotely run programs on a remote computer. You can see the screen of the remote computer fully while leaving out the complicated setup work.