Hello,
i have this script and i need to add for the resulted file the OU of user.
function str {$args}
$attribs = str name, givenName, sn, Mail, telephoneNumber, facsimileTelephoneNumber, department, title, physicalDeliveryOfficeName, streetAddress,
postOfficeBox, postalCode, extensionAttribute1, extensionAttribute2, extensionAttribute4
Get-QADUser -IncludedProperties $attribs -SizeLimit 0 | Select-Object -Property $attribs | Export-Csv -Path c:\yourfile.csv -NoTypeInformation
Open in new window
thanks for your help
i have used parentcontainerdn and work fine.
thanks