Powershell script and .CSV file that allows you to import Lord of the Rings characters as Users into Active Directory
Script:
- Adds users into Active Directory
- Adds users to appropriate groups based off of
LOTR_users.csv
. - Sets Service Prinipal Names (SPN)'s for user
gandalf
.
To run:
-
Download
./import_LOTR.ps1
andLOTR_users.csv
. -
Change domain name to match personal enviroment's domain.
Note: This will need to be done in both files.
-
Inside of
./import_LOTR.ps1
on line: 59 & 76 -
Inside of
LOTR_users.csv
for each user in the 'ou' section
Example: "CN=aragorn,DC=example,DC=com"
if desired domain is example.com
-
Change the path to which
LOTR_users.csv
is located on line: 6 for./import_LOTR.ps1
. -
Run
.\import_LOTR.ps1
.