Create new Active Directory Users

This script is a collection of scripts that I found on the internet. How I use this script is as follows:

1. I pull any new student data from our student information system and set them up in a CSV file. Link to the sample CSV file is: https://goo.gl/a7JCBc

2. You then run this script after defining everything in the CSV file. The script will create the user, set up their password, create the home directory and proper permissions.

There are some reasons why we have the script with certain items. We use description in conjunction with another Powershell script in the summer to move students from OU to OU. Each grade has an OU and there are certain group policies in each OU that set items based off of their grade.

Towards the bottom of the script there is a Start-Sleep for 10 seconds. I found that I was having an issue with the script running too fast and it slowed it down to allow everything to run correctly. This also works in conjunction with our Google Apps and the sync is ran every 15 minutes to sync new account or disable accounts.

Source Code

This script has not been checked by Spiceworks. Please understand the risks before using it.