PowerShell: Create Active Directory Users Based On Excel Input

This script will create users in Active Directory  based on the settings in the input file (see the Excel / CSV file below this  script for an example of the input file used). These settings can, of course, be  changed or extended (check this Microsoft Technet Link to get an over.

Download: create_ad_user.zip

This script will create users in Active Directory based on the settings in  the input file (see the Excel / CSV file below this script for an example of the  input file used). These settings can, of course, be changed or extended (check  this Microsoft Technet Link to get an overview of all the settings that can be  set with the PowerShell New-ADUser Cmdlet).

Not only can the file be  extended (or decreased) it can also be altered. The column names can be changed  (note that you also need to change it in the PowerShell script), the columns can  be re-ordered, etc. The script will keep working, because it uses the column  names!

Note #1: This script makes use of the Active  Directory Module for PowerShell. 

create_ad_users.ps1

In the Excel file / Input CSV the following (general) structure was used (the  values are example values).

import_create_ad_users.csv

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: