Avatar of cawasaki
cawasaki
 asked on

help to modify this script

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
Powershell

Avatar of undefined
Last Comment
cawasaki

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
loki_loki

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
cawasaki

ASKER
Hi,

i have used parentcontainerdn and work fine.

thanks
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck