# Read source TXT file
$users = Get-Content -Path 'C:\users.txt'
# Look through each of the users and set AD attributes
foreach($user in $users){
Set-QADUser -Identity $user -IncludedProperties mail,department -ObjectAttributes @{mail='something';department='something'}
}
|