Active Directory Search wildcards

  • Thread starter Thread starter Netmonster
  • Start date Start date
N

Netmonster

Hello,


I know how to search AD using the sAMAccountName if I know the exact
name of the users NT login id, but, does any one know if you can search
AD for sAMAccountName using wildcard chars? For example I wanted a
list of all the accounts with somethingsmith.

Thanks,

KC
 
Yes you can, the wildcard character is *

So, (sAMAccountName=F*) will find all AD records with sAMAccountName
beginning with "F"; (sAMAccountName=*F*) will find all records with
sAMAccountName containing "F", etc.
 
Back
Top