Bulk Phone number change - DSQUERY
I am investigating a way to update the "telephone field" for a large group of users within Active Directory? I would like to match all users with their new phone number as they have moved offices.
I'd like to use DSQUERY/DSMOD to do this but don't know how to match up %username% with the users new phone number which would be in a *.csv file.
Solution 1:
dsquery user -samid "me" "OU=Systems,OU=Production Services,DC=xxxx,DC=xxxx,DC=com" | dsmod user -tel "xxxx" -u xxxxx -p xxxxx
Big help from this blog post.