Updating Computers description field in AD using CSV list

Hi all,

 I'm IT admin, I use PS scripts to make my work easier. I'm trying to update the computers description using CSV file.

Any help would be appreciated.

I try with the following script but it returns me error

$Computers = Get-Content c:\Temp\computers.csv
 ForEach ($Computer in $Computers){
  $ADComputer = Get-ADComputer $Computer -Properties Description
 Set-ADComputer $ADComputer -Description "$ADComputer.Description"
 }

Thanks!

Parents
No Data
Reply Children
No Data