Solved

help to modify this script

Posted on 2011-03-09
2
352 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:cawasaki
2 Comments
 
LVL 4

Accepted Solution

by:
loki_loki earned 500 total points
ID: 35082291
adding parentcontainerdn or parentcontainer to $attribs would either give the ou's distinguishedname or domain/ou/ou format.  Does that helps or do you just want the name of the ou, without a path?
0
 

Author Comment

by:cawasaki
ID: 35093834
Hi,

i have used parentcontainerdn and work fine.

thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now