String Arrays param

Product: PowerShell Universal
Version: 3.4.6

Having an issue with string arrays as a param in scripts. When providing default values, only the first element is displayed in the UI.

A platform upgrade is planned, but are you aware of the issue? And if so, has it been resolved in an updated version?

Running into this bug as well on version 3.8.12

[CmdletBinding()]
param( 
    [Parameter(HelpMessage = "")]
    [string[]]
    $strings = @('string1', 'string2')
)

@adam

I’m joining this thread because the issue is still present in version 3.9.4 ánd the freshest of the fresh 3.9.5!

1 Like