Create multiple users in your active directory Print E-mail
Written by Hans Straat, Tuesday, 14 November 2006
Browsing many forums I often noticed that users are looking for a complete ready example script to create users in there active directory environment. Well I aint a big scripting guy but I also started digging into the www and found some scripts from several sides and started to merge them for use at my own environment. But with all scripts that I write they are far from perfect and some programmers even will scratch there hairs and wonder why I need so many lines.

But here is the interesting part. I had to rename the name object (the display name in the right pane if you open the active directory snapin) and stumbled right away on some troubles cause the server was unwilling to work out my request. Well after some digging and asking around I build a script that can do the following options.

  • Create a user (jippie...this is actually what we want)
  • Set the displayname to surname, firstname middelname
  • rename the Name to displayname
  • add the company name to the users organisation
  • add the user to security groups

Well to be short you only need to fill in 3 or 4 fields in the excell sheet that we supplie with the download. The Columns 3(GivenName) 4(Surname) 5(middlename(tussenvoegsel) 6 more middelname (tussenvoegsel).

The rest is autocreated with formula's in the excell sheet :) so your live is made easy.

For example if you have a user called John From The Nothingham column 3 will be John column 4 will be Nothingham column 5 with be From column 6 will be The

Now the excell formula's will autocreate the right name attributes. Check first if these attributes are right for your organisation you can simply change the formula's in the 3 horizontal line of the excell sheet.

Well I hope you like this and I also hope it will save you guys and girls time in creating users.

Download the code here

This script is AS IS so no warranty is given! Any errors or other things are at your own risk.

Comments
Add NewSearchRSS
jagadeshan - windows 2003 server Unregistered | 2007-01-12 08:13:02
how to create the 1000 user in single time active directory
Write comment
Name:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 

Powered by JoomlaCommentCopyright (C) 2006 Frantisek Hliva. All rights reserved.Homepage: http://cavo.co.nr/

 
< Prev   Next >