AD export using csvde

Soldato
Joined
3 Jan 2003
Posts
3,717
csvde -f c:\users.csv -r (objectclass=user) -l "sAMAccountName, ipPhone"

the above works fine, but I would like to use a wildcard to make the export list only users with bt at the end of there account name

eg: userid is user1bt

I can get wildcards working using
CSVDE -f c:\users.csv -r "(&(objectClass=user)(sAMAccountName=*bt))"

but I only want sAMAccountName, ipPhone exporting for users ending in bt

so really I cannot get the 2 options working together, anyone know how to sort it?

cheers
Topher
 
Back
Top Bottom