I have this code which works. But the format is not what I want. The format has distinguishedName, description and displayname on separate lines.
$sourceOU1 = "OU=Physicians,OU=MGH Users,DC=Acme,DC=org"
get-QADUser -SearchRoot $sourceOU1 -SizeLimit 100000 | %{$_.DirectoryEntry.distinguishedName, $_.DirectoryEntry.description, $_.DirectoryEntry.DisplayName} | Export-CSV "c:\temp\DisplayName.csv"
distinguishedName | CN=Zay\, Igor,OU=Physicians,OU=MHH Users,DC=Acme,DC=org | 4 | 1 |
description | MD-Radiology | 4 | 1 |
DisplayName | Zay, Igor | 4 | 1 |
How do I get them all on 1 line like this?
distinguishedName description DisplayName