标签: powershell variables
如何从以下foreach脚本获取结果并将其转换为变量或输出我稍后可以导入其他内容?
foreach
$testcsv = Import-Csv C:\useractivity.csv foreach($line in $testcsv) { $field1 = $testcsv."access path" $field2 = $testcsv."SAM Account Name (Acting object)" echo $field2, $field1 }