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

Re: How to add export-csv in this simple script?

$
0
0

You cannot use the output of the foreach statement in the pipeline because foreach is not a cmdlet. Try to wrap the foreach statement in &{}. Like:

 

&{ foreach {  ... } } | Export-CSV ...


Viewing all articles
Browse latest Browse all 201333

Trending Articles



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