Thanks! I got it working!! Much
appreciated. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de Sent: Thursday, November 17, 2005 3:50 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Renaming AD accounts en masse From: [EMAIL PROTECTED] on behalf of Rimmerman, Russ Sent: Thu 11/17/2005 10:20 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Renaming AD accounts en masse Oh very cool that worked. Sorry, i'm not very
_vbscript_ savvy.
Now if I can figure out how to modify one of RLMuellers
scripts to pull the info in from a spreadsheet I'll have it made. Any
hints appreciated!
Thanks From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de Sent: Thursday, November 17, 2005 3:06 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Renaming AD accounts en masse the link to script I mailed
you is to rename the common name attribute (CN) using the movehere
method.
if you want to change the sAMAccountName
attribute you can use the following code:
Set objADObject = GetObject("LDAP://<DC-NAME>/CN=JORGE,OU=IT-DEPARTMENT,DC=DOMAIN,DC=LOCAL")
objADObject.Put "sAMAccountName", "<new samaccountname>" objADObject.SetInfo Jorge From: [EMAIL PROTECTED] on behalf of Rimmerman, Russ Sent: Thu 11/17/2005 9:44 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Renaming AD accounts en masse I don't see a username option in DSMOD. Every other
blank appears to be modifyable except for the username
(sAMAccountName) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernard, Aric Sent: Thursday, November 17, 2005 2:16 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Renaming AD accounts en masse Another command line option would DSMOD.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Almeida Pinto, Jorge
de
you can use the example as explained at: http://www.microsoft.com/technet/scriptcenter/resources/qanda/dec04/hey1214.mspx although a group is used as example you can do it with users also. Modifying the script to use an input file would to the "en masse" thing
cheers, Jorge
From: [EMAIL PROTECTED]
on behalf of Tony Murray You can create with CSVDE but not modify, so it wouldn’t be suitable for renaming.
A script or LDIFDE would be the obvious alternatives.
Tony
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Phil
Renouf
CSVDE is probably a good bet since you have the information in Excel already:
Phil On 11/17/05, Rimmerman, Russ <[EMAIL PROTECTED]> wrote: What's the easiest and quickest way to rename a large (1000+) number of AD user accounts? LDIFDE? AD.NET? Or is there something easier? I'm going to be importing 1000+ AD accounts that are first.last for the username and will want to rename them to a specific username listed in an excel spreadsheet.
This communication, including any attachments, is confidential. If you are not the intended recipient, you should not read it - please contact me immediately, destroy it, and do not copy or use any part of this communication or disclose anything about it. Thank you. Please note that this communication does not designate an information system for the purposes of the Electronic Transactions Act 2002.
|
- RE: [ActiveDir] Renaming AD accounts en masse Rimmerman, Russ
- Re: [ActiveDir] Renaming AD accounts en masse Phil Renouf
- RE: [ActiveDir] Renaming AD accounts en masse Grillenmeier, Guido
- RE: [ActiveDir] Renaming AD accounts en masse Rimmerman, Russ