By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

Active Directory Wild Card Search

P: 5
Hi guys,

I am having this problem I want to do a search with wild card e.g. ABC will retrieve all the group XYZABC123 or SKDABC or ABC234KD
do anyone know the wildcard character to search??
Thanks in advance.

Expand|Select|Wrap|Line Numbers
  1.   For i = 0 To arrList.Count - 1 'Get all members of each group
  2.                 objDirectoryEntry = New DirectoryEntry("WinNT://ABCNT/" & CStr(arrList(i)) & ",group")
  3.  
  4.                     objIADsMembers = CType(objDirectoryEntry.Invoke("Members"), IADsMembers)
  5.  
  6.                     For Each objIADsUser In objIADsMembers
  7.                         count += 1
  8.                     Next
  9.  
  10.  
  11.                     For Each objIADsUser In objIADsMembers
  12.                         objDataRow = objDataTable.NewRow
  13.  
  14.                         With objDataRow
  15.                             .Item(0) = CStr(arrList(i))
  16.                             .Item(1) = objIADsUser.Name
  17.                             .Item(2) = objIADsUser.FullName
  18.                         End With
  19.  
  20.                         objDataTable.Rows.Add(objDataRow)
  21.                     Next
  22.                  Next
  23.  
Apr 30 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.