This is quick and easy with AdFind and AdMod… You just have to find the users, pipe their DN and sAMAccountName to AdMod and tell it to do a rename… Like so adfind –b ou=someou,dc=domain,dc=com -f "&(objectcategory=person)(objectclass=user)(name=*,*)" samaccountname –adcsv | admod –rename {{samaccountname}} –upto 1000 That command self limits itself to only modifying up to […]