February 2019
Beginner to intermediate
542 pages
10h 34m
English
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.
Start with a CSV file containing details of the users you are going to add. This recipe uses a CSV file and adds the users into the AD.
This recipe assumes you have a domain setup and that you have created the IT OU. You did this in earlier recipes in this chapter. This recipe also requires a CSV file of users to add. You can create a CSV file like so:
$CSVDATA = @' Firstname, Initials, LastName, UserPrincipalName, ...
Read now
Unlock full access