Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Extracting username information from a CSV and creating an AD user account

$
0
0

Hello all,

Im new to powershell so this is probably a really basic question but using PS, I'm trying to pull information from a CSV file, and create a user account based on what's in this file.

The CSV file looks like this:

AttributeValue
Userid

dcronin

Privileged/GroupDeveloper
Owneri33 (Cronin, Dan)
dan.cronin@test.com
Owner's Mgri33 (Welsh, Tom)
tom.welsh@test.com

How do I select the column data then pass that data into the "New-ADUser" cmdlet. So for instance, Passing e-mail into email, name into firstname & secondname etc

Any help or direction you could give me would be very much appreciated!

Thanks you very much!

Dan Cronin


Viewing all articles
Browse latest Browse all 8583

Trending Articles