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?
0
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.
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
Install it via a GPO Software Installation policy
GPOInst2012_09-1-.png
1
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Edward PamiasTeam Lead RRS DeskAuthor Commented:
As I stated in  the previous comment we have no access to modify policy.
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
So you have an admin account on all the endpoints?
0
Edward PamiasTeam Lead RRS DeskAuthor Commented:
yes but its limited admin account.
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
You can use PSEXEC and install from a share
psexec.exe COMPUTERNAME -u USERNAME -p PASSWORD -d msiexec.exe /i \\SERVER\SHARE\APP.MSI

Open in new window

https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
1
Shaun VermaakTechnical Specialist/DeveloperCommented:
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

1
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.
0
footechCommented:
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.
0
NVITCommented:
Agree on PDQ Deploy. Great software.
0
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Not allowed to use unauthorized software here.
0
Mike TLeading EngineerCommented:
Hi,

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}

Mike
1

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?
0
Mike TLeading EngineerCommented:
the remote machine. It is running everything in the { } brackets remotely.
0
Edward PamiasTeam Lead RRS DeskAuthor Commented:
Mike, I should have ask this before, do I need the machine name in between the  < >  ??
0
Mike TLeading EngineerCommented:
Yes - take the angled brackets out too. That's just convention for a placeholder.
0
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.
0
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?
0
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
Powershell

From novice to tech pro — start learning today.