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
Sent: Thursday, November 17, 2005 12:08 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Renaming AD accounts en masse

 

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
Sent: Thu 11/17/2005 8:28 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Renaming AD accounts en masse

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
Sent: Friday, 18 November 2005 6:17 a.m.
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] Renaming AD accounts en masse

 

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 e-mail is confidential, may contain proprietary information
of the Cooper Cameron Corporation and its operating Divisions
and may be confidential or privileged.

This e-mail should be read, copied, disseminated and/or used only
by the addressee. If you have received this message in error please
delete it, together with any attachments, from your system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail is confidential, may contain proprietary information
of the Cooper Cameron Corporation and its operating Divisions
and may be confidential or privileged.

This e-mail should be read, copied, disseminated and/or used only
by the addressee. If you have received this message in error please
delete it, together with any attachments, from your system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail is confidential, may contain proprietary information
of the Cooper Cameron Corporation and its operating Divisions
and may be confidential or privileged.

This e-mail should be read, copied, disseminated and/or used only
by the addressee. If you have received this message in error please
delete it, together with any attachments, from your system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail is confidential, may contain proprietary information
of the Cooper Cameron Corporation and its operating Divisions
and may be confidential or privileged.

This e-mail should be read, copied, disseminated and/or used only
by the addressee. If you have received this message in error please
delete it, together with any attachments, from your system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to