Solved

Adding new AD users using Windows PowerShell

Posted on 2010-09-11
2
533 Views
Last Modified: 2012-05-10
I have  a .csv file named AddUsers.csv containing the following user details.

Name,GivenName,SurName,Department
Binayak,cbinayak,Chakraborty,IT
Ajit,jajit,Jha,Support

Now I want to add these users using PowerShell by importing AddUsers.csv file into Active Directory Users and Computers.

Need your help for the exact command to add these users in the CSV file using PowerShell.
0
Comment
Question by:hchabria
[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 Comments
 
LVL 7

Accepted Solution

by:
thakurdinesh earned 500 total points
ID: 33654619
Import-Csv AddUsers.csv |
Foreach{New-QADUser -Name $_.name -FirstName $_.First -LastName $_.Last -UserPassword 'P@ssword'}

New-QADUser cmdlet is not windows PowerShell delivered cmdlet, its a quest AD tools you have to download and Install to work with this cmdlet. This is a simple cmmand, with no Organization Unit, no OU etc. Password is also in plain text.
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

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.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …

724 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