Solved

Report of all users DNlegacy

Posted on 2014-10-21
2
104 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 28

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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...
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

734 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