"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
原文:https://www.cnblogs.com/victor0/p/13289689.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!