I want to use csvde to find 1 user based on SamAccountName and export all the details about that person to a CSV file.
The problem I am having is filtering by SamAccountName
csvde -f search.txt -p subtree -l SamAccountName,CN,Distinguedname -r (&(objectClass=User)(SamAccountName=jon.doe))
I get an error saying that it didn't know what SamAccountName is
I need it to run from command line ( no powershell or vbscript please )
If you have multiple filters, you have set filter in quotations marks