Discussion Locked

Windows NT Groups Membership for a user

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What DLL or operating system function can I use (from VB for example) to find out to which Windows NT security groups a particular user name (or login) belongs to?

3 replies

by jfreise

You may want to use Active Directory services Interface (ADSI). Here's a link to see what it can do - it can get you ANY information!
http://www.microsoft.com/windows2000/library/howitworks/activedirectory/adsilinks.asp
Your NT 4 machines do need ADSI installed on them to access this information. Download ADSI here:
http://www.microsoft.com/NTWorkstation/downloads/Other/ADSI25.asp
It may be a little more complex than the answer you wanted, but it is very powerful and the knowledge you gain from it flows right into the .net world.
-Jay

This discussion is closed to new replies.