Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Modify Active Dirctory user attributes from a list

Posted on 2013-05-24
3
Medium Priority
?
406 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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…
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
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 you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

610 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