Solved

Report of all users DNlegacy

Posted on 2014-10-21
2
103 Views
Last Modified: 2014-10-28
need a to pull a report of all users dn legacy within a OU
0
Comment
Question by:Jorge Ocampo
[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 25

Expert Comment

by:Mohammed Khawaja
ID: 40395994
Run the following command from the Exchange server:

csvde -d "DC=mydomain,DC=local" -l mail,legacyExchangeDN -f dnlegacy.csv

This will export the DNLegacy name for all users in domain mydomain.local
0
 
LVL 27

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 40396617
If you are interested in PowerShell:

Get-ADUser -Filter * -SearchBase "<OU=Your-OU-Structure-Goes-Here,DC=domain,DC=extension>" -Properties * | select name,userPrincipalName, legacyExchangeDN | Export-Csv legacyExchangeDn.csv -noTypeInformation -UseCulture

Open in new window


Dan
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

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