Solved

How to import users from a Activedirectory OU.

Posted on 2016-09-06
2
44 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

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 15

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

756 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