Modify Active Dirctory user attributes from a list

I would like to use a PowerShell script that will change the department attribute of a users accounts from a list of users in a text or csv file .  I have quest power tools installed.
AC-DAsked:
Who is Participating?
 
SubsunConnect With a Mentor Commented:
Try..
Import-Csv Test.csv | % {
set-qaduser $_.user -manager $_.Manager
}

Open in new window

CSV Format
user,Manager
UserA,ManagerA
UserB,ManagerB

Open in new window

0
 
AC-DAuthor Commented:
Awesome ,, Thanks !

I needed to populate the department field so I replaced -manager with -department but it worked perfectly.
0
 
SubsunCommented:
Lol.. I think I have seen manager...might be confused with another question..anyways glad you could make it.. :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.