Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run exe with custom arguments using powershell

Tags:

powershell

I need to run(install) an exe which takes some custom parameter (arguments)

install.exe --no-prompt -u username -p password

The above command is provided by the 3rd party team to allow silent installation of the agent

Since I am trying to install this via powershell, I want to know how to pass the custom parameters.

Note: This exe is a 3rd party component. I can run command to install an exe with credentials object. But the same is not working in this case.

like image 968
Developer Avatar asked Sep 18 '25 14:09

Developer


2 Answers

Executables can be run in PowerShell. Try:

& install.exe --no-prompt -u username -p password

It might require giving a full path to the executable.

& C:\Users\me\Downloads\newapp\install.exe --no-prompt -u username -p password

If this does not do it, be sure to copy and paste any messages into the question.

like image 92
lit Avatar answered Sep 23 '25 05:09

lit


Start-Process -FilePath C:\run.exe -ArgumentList "--no-prompt -u username -p password"
like image 20
dbso Avatar answered Sep 23 '25 06:09

dbso