Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246801

Re: Trouble exporting output to csv file

$
0
0

That's because of the ForEach statement, that doesn't place any objects in the pipeline.

Try it like this

 

Get-Folder$folder|Get-VM|SelectName,@{N="DS Name";E={Get-Datastore-RelatedObject$_|Select-ExpandPropertyName}} |
Export-Csv
test.csv-NoTypeInfo

Viewing all articles
Browse latest Browse all 246801

Trending Articles



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