I had stumbled onto this one liner for getting contact info from AD:
dsquery * "OU=Domain Users,DC=domain,DC=local" -attr msRTCSIP-PrimaryUserAddress -scope onelevel -limit 10000 > contactsTEST.txt
Has anyone found a way to trim this automatically without user intervention?
Thanks