This ia quick video about how to use dsmod in command line to modify active directory users and computers. It a way to script changes to several users at once and with dsquery can become a very powerful tool. I made this video on Windows Server 2008, but these things should work on older versions of Windows Server Or can even be run from other versions of windows joined to the domain.
Commands used
dsmod user “cn=Stavro Mueller,ou=people, dc=my,dc=domain” -office “New York”
dsmod user -office “New Orleans”
“cn=Stavro Mueller, ou=people, dc=my, dc=domain”
“cn=Karl Mueller, ou=people, dc=my, dc=domain”
“cn=L Prosser, ou=people, dc=my, dc=domain”
CTRL+Z
Enter
dsquery user “ou=people, dc=my, dc=domain” | dsmod user -office “Omaha”
dsquery user “ou=people, dc=my, dc=domain” | dsmod user -office “”
dsmod user “cn=Stavro Mueller,ou=people, dc=my,dc=domain” -pwd * -mustchpwd yes
dsmod /?
dsmod user /?