Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get NT Groups
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00604278
Message ID:
00604344
Vues:
29
>How do I get a list of NT Groups a user belongs to?

I found one solution. Here is a code snipit from the following document:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/iadsuser_groups.asp

Dim usr As IADsUser
Set usr = GetObject("WinNT://Microsoft/JSmith,user")
For Each grp In usr.Groups
Debug.Print grp.Name & " (" & grp.Class & ")"
Next

If anyone has another solution, feel free to share.
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform