Skip confirmation while using Install-Package? Skip confirmation while using Install-Package? powershell powershell

Skip confirmation while using Install-Package?


You need to use -Force where there is a Force property available on any cmdlets, otherwise if there isn't but there is a confirm, you are able to use -Confirm:$False which acts the same as pressing Yes.

Be careful using this however as if you in fact didn't want to process the action...you don't get a second chance.


choco feature enable -n allowGlobalConfirmation

will suppress license and other prompts during install.

Set-PackageSource -Name chocolatey -Trusted

will set package source as trusted.