How to remotely run programs on another computer?
“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 how to remotely run programs on another computer?”
Three ways 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 Windows 10 via free remote desktop software, PsExec, PowerShell remoting respectively.
Method 1. Free remote desktop software
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 Remote control.
Note: You can also upgrade your account to Professional or Enterprise edition to assign more devices and to connect to another computer in privacy mode.
Step 6. next, you can run any program on the host computer as if you’re sitting in front of it.
Method 2. PsExec
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:
- Turn on file and printer sharing
- Enable administrative share ($admin) on the remote host
- Get the details of the remote host
- Use PsExec with CMD to take control of another computer
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, the remote computer is contosodc1, then you need to enter the following command to open Notepad on the remote computer:
Method 3. PowerShell remoting
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:
Note: If your PCs are part of a domain, you can skip to Step 4. If your computers aren’t on a domain, you need one more step to go. And please remember, you need to conduct Step 3 on both the PC which you want to connect to and the PC you want to connect from.
Step 3. Type in the following cmdlets in PowerShell respectively:
Set-Item wsman:\localhost\client\trustedhosts *
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.