I need a script to install software remotely.

Does anyone have a script or command line that I can use to install a software package remotely? I have an MSI file on the users machine in their C:\temp folder. I would like to run that remotely. I willing to try anything. VB script, powershell, psexec, bat or cmd.
LVL 19
Edward PamiasTeam Lead RRS DeskAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rene ZimmermannSenior System EngineerCommented:
Are the computers joined to a domain?
If so, then why not just deploy it using group policies?
Edward PamiasTeam Lead RRS DeskAuthor Commented:
yes, they are joined to a domain. Its a one off........ we normally push via SCCM but it does not work well. I just need this for myself. And we do not have access to modify group policy.
Shaun VermaakTechnical SpecialistCommented:
Install it via a GPO Software Installation policy
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Edward PamiasTeam Lead RRS DeskAuthor Commented:
As I stated in  the previous comment we have no access to modify policy.
Shaun VermaakTechnical SpecialistCommented:
So you have an admin account on all the endpoints?
Edward PamiasTeam Lead RRS DeskAuthor Commented:
yes but its limited admin account.
Shaun VermaakTechnical SpecialistCommented:
You can use PSEXEC and install from a share

Open in new window

Shaun VermaakTechnical SpecialistCommented:
Or this for the local file
psexec.exe COMPUTERNAME -u USERNAME -p PASSWORD -d msiexec.exe /i C:\Temp\APP.MSI

Open in new window

Edward PamiasTeam Lead RRS DeskAuthor Commented:
I copied the msi file to the users machine C:\temp\RSA is the foldername. The reason I want to do this remotely is because the users never respond back and I need to get this installed.
Though it's possible to script, I would rather use something like PDQ Deploy.  You can use the free version for your purposes.  Quite simple to use.
NVITEnd-user supportCommented:
Agree on PDQ Deploy. Great software.
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Not allowed to use unauthorized software here.
Mike TLeading EngineerCommented:

If you are allowed to use (run, but not install) Psexec you could use that, otherwise I would try Powershell remoting

Invoke-Command -ComputerName <remotemachine> -ScriptBlock {Start-Process -FilePath "C:\Temp\MSIFile)" -ArgumentList "/quiet" -Wait -PassThru}


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Mike for your command, does that looks at the C:\temp of the remote machine or my machine?
Mike TLeading EngineerCommented:
the remote machine. It is running everything in the { } brackets remotely.
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Mike, I should have ask this before, do I need the machine name in between the  < >  ??
Mike TLeading EngineerCommented:
Yes - take the angled brackets out too. That's just convention for a placeholder.
Edward PamiasTeam Lead RRS DeskAuthor Commented:
I did not have time to test the solutions here. I do not see how I can split this in 2. Thanks to both of you for your input. I am having on of the other team members utilize psexec.
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Sorry.... again I do not know what changed here. I thought I had the psexec as my solution. Powershell might work as well did not have time to test either of these. Does anyone know how to split the points?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.