http://www.computerperformance.co.uk/ezine/ezine42.htm Jorge
________________________________ From: [EMAIL PROTECTED] on behalf of Rimmerman, Russ Sent: Thu 11/17/2005 10:20 PM To: [email protected] 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: [email protected] 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: [email protected] 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: [email protected] 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: [email protected] Subject: RE: [ActiveDir] Renaming AD accounts en masse 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 Sent: Thu 11/17/2005 8:28 PM To: [email protected] 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: [email protected] Subject: Re: [ActiveDir] Renaming AD accounts en masse CSVDE is probably a good bet since you have the information in Excel already: http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/1050686f-3464-41af-b7e4-016ab0c4db26.mspx 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 <http://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 and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
<<winmail.dat>>
