Renaming a bunch of users with a script

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi all !!!

I have the need to rename a lot of users of my AD (arounf 20.000) to eliminate accents and things like that and make them compatible with a pass sync product.

I am preparing a script in VBScript to rename them and I have no problem changing the displayName, sn and givenName attributes. The problem comes when I try to change one of the following attributes: canonicalName, cn, distinguishedName or name (which I also have to change)

When you rename a user using the AD MMC, all of these attributes are changed at the same time even though the cn is the RDN...

How can I do it with a script????

Thanks !!

--
Bernardo Achirica Rodriguez
IBERIA - Dirección de Sistemas
Subdirec. Producción / U. Producción Red
bachirica [at] iberia [dot] es

.