Solved

Adding new AD users using Windows PowerShell

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
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…

821 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