< Back

ConvertFrom-PSFArray

Sun Jan 19, 2020 6:38 pm

NAME ConvertFrom-PSFArray



SYNOPSIS

Flattens properties that have array values.





SYNTAX

ConvertFrom-PSFArray [[-JoinBy] <String>] [[-PropertyName] <String[]>] [-InputObject <Object>] [<CommonParameters>]





DESCRIPTION

Flattens properties that have array values.

With this you can prepare objects for export to systems that cannot handle collection in propertyvalues.

This flattening happens using a string join operation, so the output on modified properties is guaranteed to be a

string.





PARAMETERS

-JoinBy <String>

The string sequence to join values by.

Defaults to ", "



Required? false

Position? 1

Default value ,

Accept pipeline input? false

Accept wildcard characters? false



-PropertyName <String[]>

The properties to affect.

Interprets wildcards, defaults to '*'.



Required? false

Position? 2

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-InputObject <Object>

The objects the properties of which to flatten.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Something | ConvertFrom-PSFArray | Export-Csv -Path .\\output.csv



Processes the output of Get-Something in order to produce a flat table to export data to csv without trimming

collections.











RELATED LINKS