Can I provide package parameters using Install-Package?

319 Views Asked by At

I know I can install packages on Windows Package Management with eg:

Get-PackageSource -Provider chocolatey
Install-Package -Name win32-openssh

But is there a way to provide package params? Eg packages like win32-openssh have options when they're installed via Chocolatey, how can I provide package params using Install-Package? Eg, something like:

Install-Package -Name win32-openssh -params '"/SSHServerFeature /KeyBasedAuthenticationFeature"'

PS. I know I could install the package directly via chocolatey - that's not my question.

0

There are 0 best solutions below