Modify Active Dirctory user attributes from a list

Posted on 2013-05-24
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.
Question by:AC-D
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
LVL 40

Accepted Solution

Subsun earned 400 total points
ID: 39195274
Import-Csv Test.csv | % {
set-qaduser $_.user -manager $_.Manager

Open in new window

CSV Format

Open in new window


Author Comment

ID: 39195688
Awesome ,, Thanks !

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

Expert Comment

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

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

688 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