Re: Bulk rename of user accounts in Active Directory
From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 03/06/05
- Next message: Todd J Heron: "Re: Demoting 2000 server"
- Previous message: Joe Richards [MVP]: "Re: Domain Controller/Global Catalog Planning"
- In reply to: Amihai Bareket: "Bulk rename of user accounts in Active Directory"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 06 Mar 2005 13:49:29 -0500
The change type for LDIF for a CN change (assuming the CN is the RDN attribute
which in the case of users it is...) is changetype:modrdn. This is because it is
an object rename, not a normal attribute change.
If using ADSI scripting, they consider it a move so you use the method movehere.
If using LDAP API you want to use ldap_rename_ext.
joe
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net Amihai Bareket wrote: > Due to a change to the naming policy, I need to rename around 1000 user > accounts in active directory (Windows Server 2003, Native Mode) > The user name (Name & CN) should be like the samAccountName attribute. > > I've tried to do it with LDIFDE but I got an error message that I can't > rename the user account because "The attribute is owned by the system". > > I can live with a text file that has all the user details (CSV?) because > this is a one time job and I rather be safe then sorry and I think I'd > rather not let the script run fully automatically. > > Any ideas on how to do a bulk rename of user account in active directory > through batch/script? > >
- Next message: Todd J Heron: "Re: Demoting 2000 server"
- Previous message: Joe Richards [MVP]: "Re: Domain Controller/Global Catalog Planning"
- In reply to: Amihai Bareket: "Bulk rename of user accounts in Active Directory"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|