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.

4.2 Star
113,599 times
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Can I modify this to pull in a text file of 'x' user names?
    1 Posts | Last post December 02, 2017
    • This script is a wonderful thing! Use it daily. Wondering how hard it would be to import a text file with multiple users rather than having to enter them one by one.
      I'd perform the edit, just wondering where to start. I've been reading the Don Jones books on PS Tool Creation and Bruce Payette's Windows PowerShell in Action. 
  • samAccountName & userPrinciaplName in tiny
    2 Posts | Last post November 22, 2017
    • Hi guys,
      Someone can help me to edit the script to have samaccountName in tiny instead of uppercase (initial) ?
      Many thanks for your help.
    • in line 146 to 149 use the .ToLower()
      "FirstNameLastName"    {"{0}{1}" -f ($GivenName).tolower()[0],$Surname.tolower()}
              "FirstInitialLastName"  {"{0}{1}" -f ($GivenName)[0],$SurName}
              "LastNameFirstInitial"  {"{0}{1}" -f $SurName,($GivenName)[0]}
              Default                 {"{0}{1}" -f ($GivenName.tolower())[0],$SurName.tolower()}
  • Need to Add a Field to theANUCusers.csv File
    1 Posts | Last post October 11, 2017
    • I need to add users email addresses to their accounts when they are created, however that field is not in the ANUCusers.csv file.  How can I add that in?  When I add a column to the file, the script fails.
  • two doamin
    1 Posts | Last post September 19, 2017
    • Hi,
      I have added two domains to XML, specified OUs. My main domain lets say is called: first.local
      Here I can create user no problem using your Powershell tool. Once I select second.local, OU and try to create the user I'm receiving an error:
      New-ADUser : The server is unwilling to process the request
      At C:\Users\sebastiandar\Desktop\Untitled1.ps1:384 char:3
      +         New-ADUser @User -ErrorVariable ADError
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (CN=seb test23,O...second,DC=com:String) [New-ADUser], ADException
          + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.NewADUser
      I have try to add a line in the script to load the AD module as a user from secon.local domain but still error persist even though I'm able to authenticate.
  • username lowercase
    1 Posts | Last post September 15, 2017
    • Hi all,
      For a specific reason, I need to have the username in lowercase.
      What I must change to have the username, samaccountName and userPrincipalName in lowercase ?
      Many thanks for your help
  • Server 2016
    1 Posts | Last post August 29, 2017
    • Works like a charm for something last updated in 2012!
  • Title Field
    1 Posts | Last post August 01, 2017
    • I need a "Title" field that populates inside the AD user profile, how easy is that to add?
  • Office and Phone number Location change
    1 Posts | Last post July 18, 2017
    • Dear Prescot,
      Thanks you very much, you made my life easier. i have modified it with password never expires option.
      One thing to know when i add office property it shows phone number and in phone property it shows office once user created. Again thanks for such a nice effort.
  • Changing the CN attribute
    2 Posts | Last post April 06, 2017
    • Hi there,
      Is there a way to change the CN attributes.
      This script work perfect but somehow the CN attribute does not respect the AD.
      When creating the user directly in AD, the CN looks like LASTNAME, Firtsname, but using the script it shows FirstName, LASTNAME (the DisplayName is correct)
      I tried to add the following line but it throws an error :
      Rename-adobject -identity $sAMAccountName (get-aduser $sAMAccountName).distinguishedname -NewName $DisplayName
      any idea maybe ?
    • it's woking with the following 
       Rename-ADobject -Identity (Get-ADUser$sAMAccountName).DistinguishedName  -NewName ($Surname + ", " + $GivenName)
  • Auto Populate
    1 Posts | Last post January 13, 2017
    • Hi There,
      Love your application. Tremendously awesome.
      I was wondering if there would be a way to incorporate a copy as function.
      That is to say enter in the Generic details for a new user and copy the groups and permissions of an existing AD User ?
1 - 10 of 132 Items