Create Bulk Users in Active Directory - Step-by-Step Guide & Free Tool
Create Bulk Users in Active Directory - Step-by-Step Guide & Free Tool
Create Bulk Users in Active Directory - Step-by-Step Guide & Free Tool
y We
Use Reviews
are funded by our readers and may receive a commission when you buy using links on our site.
y OS/Device
By OS/Device
Create Bulk Users in Active Directory
y Country Guides
uides Compare providers
eviews STEPHEN COOPER
@VPN_News UPDATED: July 18, 2022
You can set up a lot of new user accounts in Active Directory with
commonly available tools.
WHAT'S IN THIS
ARTICLE?
Create a PowerShell
script
“
Hint: Uploading new users into PowerShell is
a lot easier with a free tool than it is with
PowerShell.
Now that you have made sure that all of the PowerShell
utilities you need are running on your server, you can
create a list of all of the accounts that you want to
upload. Open your favorite spreadsheet system and
create a new file.
Copy the following text and paste it into the new file:
Import-Module activedirectory
#Read user data from each field in each row and assig
n the data to a variable as below
$Username = $User.username
$Password = $User.password
$Firstname = $User.firstname
$Lastname = $User.lastname
$OU = $User.ou
$email = $User.email
$streetaddress = $User.streetaddress
$city = $User.city
$zipcode = $User.zipcode
$state = $User.state
$country = $User.country
$telephone = $User.telephone
$jobtitle = $User.jobtitle
$company = $User.company
$department = $User.department
$Password = $User.Password
else
New-ADUser `
-SamAccountName $Username `
-UserPrincipalName "$Username@<domain>" `
-GivenName $Firstname `
-Surname $Lastname `
-Enabled $True `
-Path $OU `
-City $city `
-Company $company `
-State $state `
-StreetAddress $streetaddress `
-OfficePhone $telephone `
-EmailAddress $email `
-Title $jobtitle `
-Department $department `
-AsPlainText
-Force)
-ChangePasswordAtLogon $True
The first time you use the service you will need to enter
the login credentials of your Active Directory
administrator account. However, these are stored when
you close the utility, so they will be available for your
next session.
The utility will create entries for the new users you want
to upload in an associated Microsoft Exchange
instance, generating mailboxes for each new account. If
you want to activate this option, click the Create AD
account and Exchange mailbox radio button. The top
field in the Home screen of the User Import Tool is for
the path and name of the input file. You can locate this
through a file explorer by clicking the Select File button.
Once all the fields on the screen have been filled in, click
the Next button to proceed.
You should use the CSV file format for creating bulk
users in Active Directory. This is a pain txt file with
records represented by each line in the file. Fields in the
records are separated by commas. Such a file can be
created in a spreadsheet system, such as Excel.
Hello,
I’ve been using the script, and it works great, but I tried adding a
portion to give the users a home directory on a specific server, and I
am having some trouble any advice?
Thank you,
Ty
Reply
Richard W
September 25, 2021 at 10:41 pm
Hi there,
Reply
Mike Nefs
July 15, 2021 at 11:25 pm
Hello,
I am following the steps in mass import AD users via the powershell
script, but the steps you reference the 2 places you need to modify:
and , but in the script those 2 placeholders are not found. What is the
program line for both of these, please.
Thanks
Reply
Stephen Cooper
July 16, 2021 at 12:01 am
Hi, Mike,
Cheers,
Stephen
Reply
Leave a Reply
Comment
Name *
Leave Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Home Blog Authors Privacy policy Cookies Policy Terms of use Disclosure