Online Help > Support/Resources > Tips And Tricks

Remote Install with PSExec



When you need to perform a remote installation, you have multiple options. You could use a domain policy, a logon script or PSExec.


Depending on the way the security is configured on the remote computer, you may run into issues that even an administrator cannot install an application properly. For these cases, you need to run PSExec in the context of the system account.


First of all, you will need to install the Sysinternals tools from Microsoft, because you will need the help of PSExec.exe in the execution of our script (


After, download the .msi or the .exe of the application that you wish to install, and save this file on a shared drive that is accessible to the remote computer.


Options exist to copy files remotely, please refer to PSExec documentation for further details.




1.Create a Macro/Script/Tool entry, use the PSExec type. In the Command line section, add the following (long) line:


C:\Tools\Sysinternals\psexec.exe \\$HOST$ -i -u $TOOL_DOMAIN$\$TOOL_USERNAME$ -p $TOOL_PASSWORD$ cmd /

k "msiexec /i \\SRV-DEPLOY\msi\Setup.RemoteDesktopManager. /quiet /passive /norestart"


The full path to the msi must be entered. A network share is recommended in this case.


A few notes on that command line:


1. Replace the path to launch PSExec


2. Add the appropriate credentials in the Tools section of your session, if left blank it will use your current Windows session credentials


3. Indicate the appropriate server shared to get the .msi or .exe


4. When you are ready to deploy your application on the remote computer, you just need to select the appropriate session in the Navigation Pane and launch the macro/script/tool from the Dashboard. The Macro/Script/Tool entry can also be launch via the RDM Agent.




The Macros/Scripts/Tools type are always run in the context of a session. In fact they use the information in the session to identify what host to run the tool against, that is why we used the $HOST$ variable.


For this reason, the first step is to select a session, any type of session will do (RDP, SSH, etc). After selecting the session, the dashboard will display the Macros/Scripts/Tools.



Simply clicking on the tool will therefore launch it against the host linked to the currently selected session. You can select hosts and install in sequence.