is there a way how to expand / flatten row in datatable? I have data in variable $table which has 2 columns. In first columns there is stored [string] value, while in second column there is stored [string[]] array value, which contains at least 2 values. Here comes example of one such row:
DistinguishedName GroupNames
----------------- ----------
Applications/FarmName/Notepad {Domain\Group1, Domain\Group2}
I'd like to have it flattened and exported to e.g. CSV format, while first column keeps "key value" DistinguishedName and all other columns are filled with particular value expanded from GroupNames column. Example of desired output follows:
Applications/FarmName/Notepad; Domain\Group1; Domain\Group2