Renaming a bunch of users with a script
- From: "Bernardo Achirica" <me@xxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 07:23:21 +0100
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
.
- Follow-Ups:
- RE: Renaming a bunch of users with a script
- From: SubnetJO
- RE: Renaming a bunch of users with a script
- Prev by Date: Re: absolutely bizarre script behavior behavior
- Next by Date: pst files
- Previous by thread: Re: VBScript runtime error: Permission Denied: 'GetObject'
- Next by thread: RE: Renaming a bunch of users with a script
- Index(es):