array of names to export to csv
Posted on 2016-11-08
I have an array of names in a variable. When I export to csv the names just come out as a list of numbers. How can I get the list to show up as the names?
$here = "jason","nicole","callie"
$DesktopPath = [Environment]::GetFolderPath("Desktop")
$here | Export-Csv -path $DesktopPath\names.csv -notype
It comes out as Length