packer-plugin-windows-update icon indicating copy to clipboard operation
packer-plugin-windows-update copied to clipboard

Conditional values for SearchCriteria and Filters

Open raptorrico opened this issue 1 year ago • 1 comments

I need to conditionally define the parameter values for SearchCriteria and Filters. Would I need to run the windows-update.ps1 script rather than using the provisioner?

For example, set variables for both and then call the script

$varSearchCriteria = 'IsInstalled=0' $varFilters = @('include:$true')

windows-update.ps1 -SearchCriteria $varCriteria -Filters $varFilters

Is it possible to achieve the above using the provisioner?

raptorrico avatar Apr 28 '23 14:04 raptorrico