I have an imported CSV ($csv) with multiple headers, one of which is "Target Server". In the CSV this column has values device1, device2 etc.
I also have a hashtable ($hash) with name/value pairs of name(device1) - value(fqdn1) etc.
So I would like to replace the "device1" in CSV with the correct value from the hashtable, like:
foreach($row in $csv)
if($hash[$_.Name]){
$row."Target Server"= $hash[$_.Value]
}
Am I getting warm?