I Need To Make A Change With My IT Support! Call (225) 706-8414

Install Windows Software Using the Command Line via PsExec

You need to install software (packaged as a MSI) remotely onto a machine without interrupting operation.

Solution

This can be done using SysInternals PsExec.

  1. Make sure that the remote machine has access to the network share where the MSI is located.
  2. Use the following command to install the MSI package.
    C:> psexec \remote-machine -u “DOMAINAdmin” -p “password” cmd /c “msiexec.exe /i “\SERVERSoftwareSoftware.msi” /quiet /norestart”

If all goes correctly, you should get the following output:
cmd exited on remote-machine with error code 0.

Error code 0 actually means the command executed successfully. You can verify the software installed correctly by using the following command:
C:> psexec \remote-machine cmd /c “wmic product get name”

After a slight delay, you should get an output of all the software installed on the machine. You can then look for the software you installed in the listing to ensure that it installed.

Concerned About Cyber Attacks?

CLICK HERE >

Want to Migrate to the Cloud?

CLICK HERE >
Office 365

Ready to Experience Microsoft Office 365?

Want the latest IT news directly in your inbox? Subscribe now!