# Import Active Directory Moduke
Import-Module ActiveDirectory
write-Host 'Update Users, please wait...' -NoNewline -ForegroundColor Yellow
# Import CSV
$users = Import-Csv -Path C:\temp\Users.csv
# Update Loop
foreach ($user in $users) {
#Update from specified OU
Get-ADUser -Filter "SamAccountName -eq '$($user.samaccountname)'" -Properties * -SearchBase "DC=domain,DC=local" |
Set-ADUser -Title $($user.Title) -MobilePhone $($user.MobilePhone) -OfficePhone $($user.OfficePhone) -Description $($user.Description)
}
Write-Host 'It's done !' -ForegroundColor Green
Update_Users_CSV.ps1
SamAccountName,Title,OfficePhone,MobilePhone,Description
Users.csv





