根据CSV更新AD对象的属性

C:\aaa.csv
 
EmpNo,Username,Hostname
800880,Wei Jiang,HCA-7N6BCS1
800571,Weifeng Wang,HCA-H3WKQM1
799249,Houchun Zheng,HCA-DB36CS1
 
Import-CSV -Path C:\aaa.csv | foreach {
    Set-ADComputer -Identity $_.Hostname -Description $_.Username
}

 

posted @ 2015-05-08 15:06  dongdonggeorge  阅读(301)  评论(0编辑  收藏  举报