Luc, you are right. I should have tested this. ![]()
This is a disadvantage of the ForEach command that I almost never use. Normally I use the Foreach-Object cmdlet and that works fine with pipeing the output to Export-CSV.
Markus you have to use option 2 in this case.