HomeLinuxSet up Software program Utilizing PowerShell Script

Set up Software program Utilizing PowerShell Script


PowerShell is a Home windows utility to carry out automation and administration-related duties. All operations are attainable in PowerShell, from managing system recordsdata to putting in software program. Actually, PowerShell can carry out such duties which can’t be carried out utilizing a typical UI interface. Furthermore, each “PowerShell” instructions and “PowerShell ISE” scripts will be utilized for putting in software program.

This tutorial will assist the customers to put in software program utilizing the PowerShell script.

The best way to Set up Software program Utilizing PowerShell Script?

PowerShell script can be utilized to put in the software program within the given kinds:

Technique 1: Carry out Customary Set up of Software program Utilizing PowerShell Script

Let’s begin with the usual set up of the software program utilizing PowerShell script. Customary set up is the easy set up of the software program.

For example, overview the talked about instance:

> Begin-Course of C:New7zip.msi

In response to the above command:

  • To start with, use the “Begin-Course of” command to carry out a number of installations.
  • After that, specify the software program path that must be executed:

As you’ll be able to see from the output, the installer setup of “7-zip” has been launched.

Technique 2: Carry out Silent Set up of Software program Utilizing PowerShell Script

Software program set up will be carried out silently by utilizing the beneath command within the PowerShell script:

> Begin-Course of C:DocWinRAR.exe -ArgumentList “/S /v/qn”

Right here:

  • To start with, add the “Begin-Course of” command after which specify the software program file path.
  • After that, add the “-ArgumentList” parameter after which assign “/S /v/qn” choices to put in the desired software program in silent mode:

Executing the above code will set up the software program silently utilizing a PowerShell script.

Conclusion

To put in the software program utilizing PowerShell, first add the “Begin-Course of” command, add the software program file path, after which execute it for normal set up. In case, if you wish to set up the software program silently, then add the “/S /v/qn” parameter. This submit has offered numerous methods to put in software program utilizing PowerShell script.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments