Solved

Adding new AD users using Windows PowerShell

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
A brief introduction to what I consider to be the best editor for PowerShell.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

930 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

12 Experts available now in Live!

Get 1:1 Help Now