Create 1000 Sample User Accounts

Demonstration script that creates 1,000 user accounts (named UserNo1, UserNo2, UserNo3, etc.) in the Users container in Active Directory. The script is useful for test scenarios t

 
 
 
 
 
3.4 Star
(14)
Add to favorites
Active Directory
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Works on 2008 too
    8 Posts | Last post May 30, 2013
    • It works on 2008 too....thanks
      
      Big Hug
      
      Jordano Mazzoni
    • i think i am not doing this correctly.  i ran this in Powershell 2 and CMD shell and its not working. i rename the file extension to PS1 and BAT and CMD.  it does not want to work.  Let me know how to run this script.
      thanks
    • Didn't work for me :(
      
      Unexpected token '&' in expression or statement.
      At line:3 char:48
      
      Unexpected token '_' in expression or statement.
      At line:3 char:50
      
      Missing closing ')' in expression.
      At line:4 char:5
      
      Unexpected token ')' in expression or statement.
      At line:4 char:43
    • Hi Guys, 
      
      The above script is for Visual Basic - down http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express - Visual Studio Express - works great if you have the right tools.
       
    • I have a LAB with Win 2008 DC's and clients (6 Hyper-V guest machines) and this script is helpful when I test users on AD and reporting and monitoring scripts. 
    • Thanks for testing it, Jordano!
    • This work  Windows Server 2008 R2.
    • This work's Windows Server 2012 also :)
  • How do I add a "Telephone number:" field to this script?
    1 Posts | Last post August 06, 2012
    • How do I add a "Telephone number:" field to this script? 
  • Local Admin Account
    2 Posts | Last post March 20, 2012
    • Hi all , i need this script BUT instead AD accounts i needed for local admin accounts over multiple computers , any idea ?? 
    • Save the file as .vbs and run it. Works in Windows Server 2008 R2 Standard.
  • What am I missing?
    1 Posts | Last post December 31, 2011
    • I am very new to VB
      
      I do understand using Dim and Imports statements, just not sure what each of these items should have been Dimmed as, or what imports to use, if any.
      
      When I add the code to a new project, it tells me that
      
      Name 'objRootDSE' is not delared
      Name 'objContainer' is not delared
      Name 'objLeaf' is not delared 
      Name 'WScript' is not delared
      
      Any help you can give me is greatly appreciated.
      
      Thanks,
      Curt