As mentioned several times in this book, https://www.spiceworks.com/Â has a busy PowerShell support forum (accessible at https://community.spiceworks.com/programming/powershell). A frequently asked (and answered) question is: How do I add multiple users using an input file? This recipe does just that. You start with a simple CSV file containing the details of the users you wish to add. This script uses a CSV file and adds the users contained in the CSV.
Adding users to AD using a CSV file
Getting ready
This recipe assumes you have a domain setup and that you have created the IT organizational unit.