Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Changing Active Directory username

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2561
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Changing Active Directory username
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Changing Active Directory username - 4/4/2005 9:22:10 AM   
  MasterOfTheHat

 

Posts: 6
Score: 0
Joined: 4/4/2005
From:
Status: offline
I'm sure there is already a post out here about this, but I haven't found it yet...

I'm looking to change the "User logon name" and "User logon name (pre-Windows 200)" (under the Account tab on the user properties page) for all users in a given OU to meet our new standards. I can handle the string manipulation (I hope...), but what do I use to actually change the value of those fields?

Basic logic would be:
1. get recordset of all users in the supplied OU
2. loop through recordset
a. retrieve user logon fields
a. modify strings
b. write new values to AD

??

-MotH
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Changing Active Directory username Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts