?
Solved

CSVDE query help

Posted on 2012-08-30
2
Medium Priority
?
1,059 Views
Last Modified: 2012-08-30
Hi
does someone know the proper syntax to search a SINGLE OU for the "display name", "Samaccountname", "mailnickname" and "email address" attributes using CSVDE

Here is what i was working with, but it doesn't seem to work.

thanks
csvde -m -f AccountName_mailboxes.txt -c "OU=,OU=,DC=,DC=,DC=" "" -d "OU=,OU=,DC=,DC=,DC=" -r "(&(objectClass=*)(mail=*))" -l objectClass,member,displayName,memberOf,proxyAddresses,legacyExchangeDN,title,telephoneNumber,facsimileTelephoneNumber,mobile,homephone,givenName,company,userPrincipalName,co,c,physicalDeliveryOfficeName,postalCode,sn,st,streetAddress,title,wWWHomePage,description,l,initials,info,sAMAccountName
0
Comment
Question by:lgarza
  • 2
2 Comments
 
LVL 17

Accepted Solution

by:
Premkumar Yogeswaran earned 2000 total points
ID: 38350979
Hi,

You can also use in DSQUERY.

dsquery * "ou=eur,ou=org,dc=msoft,dc=com" -filter (objectcategory=*) -attr displayname samaccountname mailnickname mail

Hope this help..

Regards,
Prem
0
 
LVL 17

Expert Comment

by:Premkumar Yogeswaran
ID: 38352934
Thanks for the grade...

Regards,
Prem
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

569 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