Solved

help to modify this script

Posted on 2011-03-09
2
354 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
A procedure for exporting installed hotfix details of remote computers using powershell
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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