Solved

Report of all users DNlegacy

Posted on 2014-10-21
2
106 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 NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

728 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