You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Hi @raptorrico, not sure this helps with your use-case, but I override the value of my variable update (which is true by default) using packer build -var update=false ... to skip updates for faster testing, see below:
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?
The text was updated successfully, but these errors were encountered: