Solved

Adding new AD users using Windows PowerShell

Posted on 2010-09-11
2
524 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
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

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

707 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

17 Experts available now in Live!

Get 1:1 Help Now