Answer the question
In order to leave comments, you need to log in
How to replace a character inside all array elements after import-csv?
There is a part in the crypt where a variable with csv is created:
$header = "property1","property2"
$dt = Import-Csv $tempfile -delimiter "," -header $header
$dt | % {
$_.'property1' = $_.'property1'.replace("'","")
$_.'property2' = $_.'property2'.replace("'","")
}
Answer the question
In order to leave comments, you need to log in
Do a Get-Content import, remove all characters, then send it to ConvertFrom-CSV.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question