Solved

Modify Active Dirctory user attributes from a list

Posted on 2013-05-24
3
361 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
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 400 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Set OWA language and time zone in Exchange for individuals, all users or per database.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now