Adding EmployeeID to Active Directory + Powershell!

rated by 0 users
This post has 1 Reply | 1 Follower

Top 10 Contributor
Posts 2,598
ps2 Posted: 02-10-2010 10:01 AM

By Rob 

I have seen and heard of people using Visual Basic to add, change, delete these, however, given that we're now in the Powershell world, that'd be my preference. So I intend to spend a little time looking at this. ...

Read More

Not Ranked
Posts 1

Hello Rob,

 

I just performed this task with a simple one liner power shell script. All I had to do was create a csv file that listed the SAMACCOUNTNAME in one column and the EID in the other. I made that my columns had headings of samaccount name and emplieeid. You can use this script to modify just about any attribute as long as you have the correct headings. Hope this helps.

 

 

 

 

 

import-csv

 

 

 

Mike

c:\scripts\eid.csv | Set-QADUser -Identity {$_.samaccountname}

Page 1 of 1 (2 items) | RSS
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.