标签:
#将ip是10.103.22.812的主机名属性改成SUCCESS Import-Csv -Path C:\aaa.csv | foreach { if ($_.ipaddress -eq ‘10.103.22.812‘) { $_.FullDomainName = ‘SUCCESS‘ } $_ } | Export-Csv -Path c:\aaa-upadte.csv -NoTypeInformation #将ip是10.103.22.812的最后一列属性值改成FAILURE Import-Csv -Path C:\aaa.csv | foreach { if ($_.ipaddress -eq ‘10.103.22.812‘) { $_.RequestedTargetGroupName = ‘FAILURE‘ } $_ } | Export-Csv -Path c:\aaa-upadte.csv -NoTypeInformation
标签:
原文地址:http://www.cnblogs.com/IvanChen/p/4488313.html