Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding new AD users using Windows PowerShell

Posted on 2010-09-11
2
Medium Priority
?
536 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

885 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