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.

55,719 times
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Help - Can add Single User but when i Submit all it creates errors
    1 Posts | Last post April 02, 2014
    • Hi, 
      Can anyone please help, hoping its something simple. when i use the Script to create one user in CSV Mode it works but when i submit all it fails. i get the error in Powershell below 
      New-ADUser : The object name has bad syntax
      At D:\ANUC\ANUC.ps1:606 char:4
      +             New-ADUser @User -ErrorVariable ADError
      +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (CN=Controlled U...DC=Cal,DC=local:String) [New-ADUser], ADException
          + FullyQualifiedErrorId : The object name has bad syntax,Microsoft.ActiveDirectory.Management.Commands.NewADUser
      Anyone any Ideas? 
      Martin Hoolickin
  • To Set password never expires and User cannot change password.
    1 Posts | Last post March 23, 2014
    • Hi,
      I would like to allow the script to Set password never expires and User cannot change password.
      I've test adding PasswordNeverExpires = $true to the $User definitions but seems not working. 
      Any idea anyone?
  • Create users with CSV mode
    1 Posts | Last post March 15, 2014
    • Hi, 
      I would like to know how create users by CSV mode, because I don't know how it works or who put the var like "FirstName".
      When I import CSV file i have only ID ..
      Anyone can help me ? 
      I'm french student. 
      Thank You.
  • CSV mode import not working
    1 Posts | Last post March 05, 2014
    • I'm trying use this on a new 2012r2 DC to create a few hundred users. I used your template file to create the CSV. When I import the CSV nothing populates & I get no errors(including in event viewer). Am I missing something? Is it necessary to modify the options file even when running CSV mode? 
  • User Principal columns and samAccount field
    1 Posts | Last post March 03, 2014
    • Hi Rich 
      First to say that you made a excellent tool. My question is there any possibility to remove the dot from the UPN and samAccount column in your script? In my world no Administrators creating a users that ends with a dot, in their login name. Like when you type a name in the First name column, the UPN and SamAccount fields ends with a dot (Before the @domain name). Could be annoying, when creating a user with the tool. Therefore I would like to ask how you can change the script so the dot can be avoid, when you type a name in the First Name column?
      Best regards,
  • Stuck
    1 Posts | Last post February 04, 2014
    • Hi Rich,
      I have new domain 2008 R2, and after I try run ANUC, warning window appear:
      "You are using an older version of the Options file. Please generate a new Options file and transfer your settings.
      In Use: Latest: 1.2"
      Could someone help me?
      I need to import approx 300 users form CSV file (only Name Surname)
      Thaks for an answer!
  • Need Help with Error
    3 Posts | Last post January 30, 2014
    • I thought I understood the script and how to use it however every attempt leads me to the following error.
      PS C:\Windows\system32> C:\Utilities\Scripts\ANUC.ps1
      New-ADUser : The name provided is not a properly formed account name
      At C:\Utilities\Scripts\ANUC.ps1:377 char:3
      +         New-ADUser @User -ErrorVariable ADError
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (CN=inm.svc.scac...rodehs,DC=local:String) [New-ADUser], ADException
          + FullyQualifiedErrorId : ActiveDirectoryServer:1315,Microsoft.ActiveDirectory.Management.Commands.NewADUser
      please help.
    • my problem is because I am attempting to create service accounts that do not have a last name. 
      how should I create a service account that does not have a last name just using the first name field as the account name. 
    • over came the first name issue by modifying the script to allow an entry with only first name. it can be enabled as a 4th option for formatting. 
      now I have a new error message.
       :) baby steps... thank you for the script.
  • copying user
    2 Posts | Last post January 27, 2014
    • Hi,
      This is amazing - thanks for that.
      I work at a school so each year need to setup hundreds of new users (depending on our intake) in a small period.  Can you please advise;
      1. What code do I need for it to create a mailbox as well (exchange 2010 and o365)
      2. Is it possible to copy the group membership from an existing user?  At the moment, I would have to add these users to correct groups, which takes me ages.
    • try the same using this tool.
  • Unable to process the request....
    1 Posts | Last post December 12, 2013
    • I have been trying for a couple hours to get this to work, but have had no luck so far. I want to say first off... thank you for the hard work you put into the tool! If I can get this to work, I know it will save me a lot of time. 
      I can enter users in the Single User Mode, and I can submit one entry at a time in CSV mode, but if I click "Submit All" I get this error. I would appreciate any help resolving this. 
      New-ADUser : The server was unable to process the request due to an internal error.  For more information about the
      error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug>
      configuration behavior) on the server in order to send the exception information back to the client, or turn on
      tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
      At C:\users\Eric\Desktop\ANUC.ps1:606 char:4
      +             New-ADUser @User -ErrorVariable ADError
      +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (CN=New Account,,DC=local':String) [New-ADUser], ADException
          + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.NewADUser
  • The Office and Phone number are transposed in CSV mode
    1 Posts | Last post December 07, 2013
    • To fix to the Office and Phone number being transposed, navigate to the $btnSubmitAll_Click function and transpose the $Office and $OfficePhone lines. Then renumber them as shown here:
       $Office = $_.Subitems[5].Text
       $Title = $_.Subitems[6].Text
       $Description = $_.Subitems[7].Text
       $Department = $_.Subitems[8].Text
       $Company = $_.Subitems[9].Text
       $OfficePhone = $_.Subitems[10].Text
1 - 10 of 87 Items