VB replacement of ifmember.exe /list
Posted on 2006-05-23
I try to convert a logon script to VB, but i could not find an equivalent function for the IFMEMBER.EXE.
To script is completely based on the array of group memberships the ifmember /list returns.
Therefore I need a function in vb, that returns such an array as simple as ifmember /list does.
I do not want to care about or predefine in which domain or ou the user is, all must to relate to the current user.
I saw a lot of AD-Scripting and LDAP stuff, but could not find something that simply returns all groups the current user belongs to without predefine at least the LDAP domain.
Anyone have an idea?