Export-CSV multivalue property expansion - by Terry Dow

Status : 

  Postponed<br /><br />
		Due to current priorities, the product team decided to postpone the resolution of this item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 693063 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 10/4/2011 1:02:01 PM
Access Restriction Public


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:
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.