Solved

How to import users from a Activedirectory OU.

Posted on 2016-09-06
2
40 Views
Last Modified: 2016-09-13
Hi

We have Windows 2012 DC and we have a OU where 200 users are created. I want to export their full name , user name and password.
I have used CJWDEV AD info Free Edition in the past and completely forgot how to import users from specific OU.

Please can you post me , if there is any Free tool to do this .

Thanks
0
Comment
Question by:lianne143
2 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 250 total points
ID: 41785666
Powershell:
Get-ADUser -Filter * -Properties DisplayName -SearchBase 'OU=SomeOU,OU=Wherever,DC=domain,DC=com' |
	Select-Object -Property DisplayName, SamAccountName |
	Export-Csv -Path C:\Temp\ADUsers.csv -NoTypeInformation

Open in new window


You can't export their passwords, nor is there any need for anyone to know anybody else's password.
0
 
LVL 14

Assisted Solution

by:Todd Nelson
Todd Nelson earned 250 total points
ID: 41786202
Like OBDA said, you cannot export passwords.

Other than that, you will to get what you want with CSVDE (run from CMD prompt).  Try something like this...

csvde.exe -d "ou=MYOU,dc=MYDOMAIN,dc=local" -r objectClass=user -l DisplayName,userPrincipalName -f user-objects.csv

Open in new window

0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

943 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

7 Experts available now in Live!

Get 1:1 Help Now