Evan pretty much got you covered.

The issue is that the only property the string has is the length and export-csv needs more properties to export is successfully.

If you use EXPANDPROPERTY, it strips away ALL other properties, so you want to be careful with that.

In general, If you post code, please use the ‘Insert Code’ button. Please and thank you!

codebutton_small.png