Problems with Export-CSV and ConvertTo-CSV

by Mar 1, 2011

I have a littel piece of code:

$imp = "NT_Login","Server","Object","Object_Type","Size_in_MB","Surname","Given_Name","Email","Department","Cost_Center","Location","Location_Description","additional_Infos"
$imp | Export-Csv
"$logpathanalysisanalysis.csv" -NoTypeInformation -Delimiter ";"

So far so good, until I open the resulting CSV. Instead of the text from above I only find the following:

Length
8
6
6
11
10
7
10
5
10
11
8
20
16

So it just gives me the lenght of the words. What am I doing wrong ?

Regards

Markus