"import-csv -path C:mac.csv | foreach {
$a=$_.name
Get-DhcpServerv4Scope | Get-DhcpServerv4Lease |where {$_.ClientId -like ""$a"" }} | export-csv c:computer.csv -NoTypeInformation -encoding utf8"
csv文件
name
a1d3g5hef4
"import-csv -path C:mac.csv | foreach {
$a=$_.name
Get-DhcpServerv4Scope | Get-DhcpServerv4Lease |where {$_.ClientId -like ""$a"" }} | export-csv c:computer.csv -NoTypeInformation -encoding utf8"
csv文件
name
a1d3g5hef4