mikemaccana
mikemaccana

Reputation: 123208

Can I provide package parameters using Install-Package?

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.

Upvotes: 3

Views: 326

Answers (0)

Related Questions