i try to read data into powershell with a csv file, i want to achieve something like that
name
------
peter
hans
but i get something like this:
name;alter
----------
peter;klaus
hans;dieter
my code looks like this:
$CSV= Import-Csv \\D\test.csv
$csvFiles = $CSV
$csvFiles
i know that i have to select in following code that i only want "names" but if i edit my code to:
$CSV= Import-Csv \\D\test.csv
$csvFiles = $CSV | Select-Object 'name'
$csvFiles
i only get
name
----
Edit:
the file is saved csv utf8
csv in notepad++
name;alter
peter;klaus
hans;dieter