?
Solved

Modify Active Dirctory user attributes from a list

Posted on 2013-05-24
3
Medium Priority
?
404 Views
Last Modified: 2013-05-24
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.
0
Comment
Question by:AC-D
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 1200 total points
ID: 39195274
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
 

Author Comment

by:AC-D
ID: 39195688
Awesome ,, Thanks !

I needed to populate the department field so I replaced -manager with -department but it worked perfectly.
0
 
LVL 40

Expert Comment

by:Subsun
ID: 39195738
Lol.. I think I have seen manager...might be confused with another question..anyways glad you could make it.. :-)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief introduction to what I consider to be the best editor for PowerShell.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question