Home Dashboard Directory Help
Search

Export-CSV multivalue property expansion by Terry Dow


Status: 

Closed
 as Postponed Help for as Postponed


4
0
Sign in
to vote
Type: Suggestion
ID: 693063
Opened: 10/4/2011 1:02:01 PM
Access Restriction: Public
0
Workaround(s)
view

Description

Export-CSV not expanding multivalue properties returning property type instead. Export-CSV only serializes to a depth of one, instead of two like Export-Clixml. Instead of writing simple code now requires adding expansion routines:
Details
Sign in to post a comment.
Posted by Josh Gavant [MSFT] on 10/28/2011 at 10:28 AM
I've gotten this request from customers several times. In particular they want to expand multi-valued attributes returned from AD (via e.g. Get-ADObject).
Posted by Jason M Archer on 10/4/2011 at 8:44 PM
Well, PS is clearly just converting each value to a string. I suppose it could enumerate IEnumerables and convert each item to a string, then $OFS them together.
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
Test-CSVExpansion.zip 10/4/2011 1 KB