Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


create batch file to add users to AD

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> create batch file to add users to AD
  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 >>
 create batch file to add users to AD - 9/30/2005 3:52:48 AM   
  csamuels


Posts: 42
Score: 0
Joined: 9/26/2005
Status: offline
we're currently planning a migration from 4.0 domain  to 2003 domain with AD.  I've created a script that uses a access db to create a batch file to add all windows users in the db.  The db hold the user's first & last name along with thier username and password. 

to use this script, extract all files to your desktop.  add user information to the db required fields are [First name], [Last Name], [Windows Username], [Windows Password],  modify the script's userdn variable to reflect your system's userdn. 'userdn without the first cn=, to put in an ou use ,ou=OUNAME,dn=domain,dn=com'  'example - Alissa Pearce in Users in FOSNJ.com Domain uses ,cn=users,dn=fosnj,dn=com'.  Comment or remove the two lines after the userdn declaration to allow the script to run.

the script will create a batch file on your desktop named adduserad.bat.  The batch will redirect its output to c:\dsaddmod.log.  users accounts will be set to never expire, not change pwd on next logon, and cannot change their pwd.

http://rapidshare.de/files/5712837/pwd2.zip.html  - goto shortcut, click free, link is at the bottom of the next pg
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> create batch file to add users to AD 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