Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 207710

Export to csv from array

$
0
0

Hello:

 

I have array with some info that I gather during script execution (VM name and some parameter). All I need now is to export this data to csv format. I tried

 

$array | Export-CSV C:\test.csv -NoTypeInformation,

 

but the result file does not have the data from the array, it has only one column "Length" and some numbers (lenth of the individual record).

 

How can I fix it?

 

Thanks!


Viewing all articles
Browse latest Browse all 207710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>