Bulk Department Updates

Good afternoon,

Payroll decided to change everyone's Department codes, I am trying to bulk update them in AD.

I was hoping that would work,

$users=get-aduser -filter {department -eq '10505'} ForEach ($users in $users) Set-ADUser -Department "10552570"

Any help in what I am doing wrong?

TIA

Jay

Parents
No Data
Reply Children
No Data