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
thorandironman.
To run:
-
Download
import_marvel.ps1andmarvel_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 -
Inside of
marvel_users.csvfor each user in theousection
Example: "CN=thor,DC=example,DC=com" if desired domain is example.com
-
Change the path to which
marvel_users.csvis located on line 24 forimport_marvel.ps1. -
Change the path to which
quotes.txtis located on line 83 forimport_marvel.ps1 -
Run
.\import_marvel.ps1
