Active Directory User Creation tool 1.2

One task that every systems administrator has to go through at some point is the creation of new user accounts. Powershell makes this process simple and adds additional functionality, such as the ability to set defaults and import users from CSV.

ANUC.ps1
 
 
 
 
 
(83)
34,404 times
Add To Favorites
Active Directory
12/4/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to Ask a Question


  • How can I resolve: "Cannot validate argument on parameter 'Path'. The argument is null or empty."
    1 Posts | Last Post Tue 2:44 AM
    • this is the .csv file I am using.
      
      Domain,Path,FirstName,LastName,Office,Title,Description,Department,Company,Phone,StreetAddress,City,State,PostalCode,Password,sAMAccountName,userPrincipalName,DisplayName
      ,,test1,user,,,,,,,,,,,P@ssw0rd1,,,
      ,,test2,user,,,,,,,,,,,P@ssw0rd1,,,
      ,,test3,user,,,,,,,,,,,P@ssw0rd1,,,
      ,,test4,user,,,,,,,,,,,P@ssw0rd1,,,
      
      I am attempting to create the accounts within CN=Users,DC=tldom,DC=local. I am using the default container within AD.
      I have not created an OU=Users and do not wish to.  
  • How can run this script to create 100 test users?
    2 Posts | Last Post Tue 2:34 AM
    • How can I run this script to create 100 test users named testuser1 thru testuser100? Is it possible for the script to loop and create each new test user with the next user name (testuser1, then testuser2, then testuser3, and continue until it creates testuser 100 then stops)?
    • Pls disregard this posting. I have found a different format as a resolution.
      
      thanks
  • Fprce password change
    1 Posts | Last Post June 09, 2013
    • Hi Rich,
      i need to add force password change = no and password never expires = yes
      
      can you tell me where i have to add these options in script and csv file ??
  • question to your GUI
    1 Posts | Last Post June 01, 2013
    • Hi Rich,
      
      I'd like to ask you, if you wrote the GUI by yourself, or if you used an application to design it?
      
      Please reply.
      
      BR
  • add groups automatically
    2 Posts | Last Post May 30, 2013
    • I need to add certain groups to users that I create, How do I add that to the script?
    • Figured it out with some help, added Add-ADGroupMember GROUPNAME $samAccountName to line 380
  • ipphone field
    1 Posts | Last Post May 28, 2013
    • Is there a way add an ipphone field?
      
  • Set Password to Never Expire?
    2 Posts | Last Post May 16, 2013
    • Hello ... I LOVE this script.  Thank you!  
      
      Is there an easy change I can make so that the default is for the user password to never expire?  It's for a test lab, so I don't want it to have to be changed.
      
      Thank you!
    • I answered it myself.  In case any other PS newbies want to know, I added
      
      PasswordNeverExpires = $true
      
      to the $User definitions.
  • Unable to load ANUC.ps1 as it is not digitally signed
    2 Posts | Last Post May 16, 2013
    • I tried running it on Windows 2008 R2 and I got the following error:
      . : File C:\Deploy_FD\ANUC.ps1 cannot be loaded. The file C:\Deploy_FD\ANUC.ps1 is not digitally signed. The script will not execute on the system. For more 
      information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
      At line:1 char:3
      + . 'C:\Deploy_FD\ANUC.ps1'
      +   ~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : SecurityError: (:) [], PSSecurityException
          + FullyQualifiedErrorId : UnauthorizedAccess
      
    • Just open it in ISE and do a Save as
  • Submit works, but not Submit All?
    1 Posts | Last Post April 17, 2013
    • This is fantastic by the way.  I've taken out the defaults and set the xml file so that it only uses what I specify in the csv file.  If I click submit on each one manually, it works.  But if I click, Submit all, it fails.  
      
      Any ideas on why that might be?
  • Issue Switching to CSV Mode after Creating Users in Single Mode
    2 Posts | Last Post April 08, 2013
    • Rich,
      
      This is an awsome piece of work... thanks for giving to the community....
      
      I've noticed that if I import users from a CSV file that does not specify the sAMAccount, UPN or Display name then they get generated as expected based on the settings in the xml options file, however if I first create a user in single mode (obviously those attributes are correctly configured) and then switch to CSV Mode, all of the CSV users would be created using the values that were last specified when in Single User Mode.
      
      How do we clear those values when clicking the CSV Mode button?
      
      Regards
      
      Steve
    • Rich,
      
      I think I've managed to come up with a solution to my question... if you add the following after line 420 wich containes:- $formMode_Click={
      
      	  $txtFirstName.Text = ""  # Clears FirstName on form when toggling between "CSV Mode" & "Single-User Mode"
      	  $txtLastName.Text = ""   # Clears FirstName on form when toggling between "CSV Mode" & "Single-User Mode"
      
      then when changing between the two modes the values are cleared.
      
      Regards
      
      Steve
1 - 10 of 63 Items