$step = @{
Deployment = $Deployment.Name
Name = 'Choco Upgrade All'
TargetGroup = $Group.Name
# why is this here?
Type = 'Basic'
ChocoCommand = 'upgrade'
PackageName = 'all'
}
New-CCMDeploymentStep @step
I think the best way forward here is to remove the Type parameter completely (it's not really adding anything here) and just have the -Script or -ChocoCommand (and -PackageName) parameters be mandatory in their sets.
I think the best way forward here is to remove the
Type
parameter completely (it's not really adding anything here) and just have the-Script
or-ChocoCommand
(and-PackageName
) parameters be mandatory in their sets.