powershell csv process
1 TopicNo Output cvs file
Hi, I have the following code.. It runs with no errors but does not give any output: $rec_cnt = 0 $data_conv = (Get-Content $destFile2) $result = foreach ($line in $data_conv) { $line.host if ($line.IsError -eq " " ) { $line.IsError = 9 } if ($line.severity_id_and_name -eq 1 -or $line.severity_id_and_name -eq 2 -or $line.severity_id_and_name -eq 4) {$line.IsError = 0 } Else { if ($line.severity_id_and_name -eq 3) { $line.IsError = 1 } } $rec_cnt = $rec_cnt + 1 } # close Foreach loop $result | Set-Content $destFile3833Views0likes1Comment