Powershell script and .CSV file that allows you to import Marvel characters as users into Active Directory
Script:
- Adds users into Active Directory
- Adds users to appropriate groups based off of
marvel_users.csv
. - Sets Service Prinipal Names (SPN)'s for users
thor
andironman
.
To run:
-
Download
import_marvel.ps1
andmarvel_users.csv
. -
Change domain name to match personal enviroment's domain.
Note: This will need to be done in both files.
-
Inside of
import_marvel.ps1
on line: 60, 79, & 80 -
Inside of
marvel_users.csv
for each user in theou
section
Example: "CN=thor,DC=example,DC=com"
if desired domain is example.com
-
Change the path to which 'marvel_users.csv' is located on line: 6 for
import_marvel.ps1
. -
Run
.\import_marvel.ps1