Common Ways to Run Programs on Remote Computers

Find out some of the techniques commonly used to run programs on remote computers and their pros and cons.

Bill Stewart

January 30, 2012

1 Min Read
ITPro Today logo in a gray background | ITPro Today

In a Windows environment, there's more than one way to run a program on a remote computer. Here are some commonly used techniques and their mainadvantages and disadvantages:

PsExec is a powerful utility that provides a number of useful features. However, it has onebig disadvantage: If you need to run a program on another computer using alternate credentials, PsExec sends the password in clear text over thenetwork.

PowerShell remoting offers interactive sessions (Enter-PSSession), persistent connections to run multiple commands (New-PSSession), and theability to run PowerShell commands and scripts on remote computers. The main disadvantages are that the remote machines must have at least PowerShell2.0 and you have to enable remoting (which is disabled by default).

You can use the Windows Management Instrumentation's (WMI's) Win32_Product class if you need to install a program on a remote system, but thistechnique is limited to installing Windows Installer (.msi) packages. The package must be copied to the remote system first. Msiexec.exe command-lineparameters (such as /qn) aren't supported. Also, some OSs (notably Windows Server 2003) don't have the WMI Windows Installer provider installed bydefault. Most administrators give up trying to install packages remotely using Win32_Product due to the complexities.

The Windows Task Scheduler service is a native part of the OS and provides a secure means for executing programs on remote computers. The maindisadvantage to using the Task Scheduler service to run programs is finding an easy way to automate the interaction with the Task Scheduler service torun a program. This is the problem that Start-Program.ps1 solves.

You can learn all about the Start-Program.ps1 PowerShell script in the article "Run Programs on Remote Computers On Demand with One Command."

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like