Question Locked

How to get the groups that a given user is a member of?

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

As part of my Software Development course I am doing, I have become stumped on a rather large problem. I have to find out how the get a list of groups a given user is a member of. This needs to be done in either Visual Basic 6 or through the Command Prompt. the problem lies in the fact that the VB6.0 application runs on several clients (Running Windows XP Professional) but users are logged onto a Domain (Windows Server 2003). If this can be done through command prompt I will simply put the command into a batch file and direct the output to a text file to be read in by the application.

Any help would be greatly appreciated.
Thanks in advance,
Lee Fernie

4 replies

by c.ingram

You can also try the gpresult command at a command prompt. Use the /? switch after the command to get a list of options.

by -snowy-

This is exactly the kind of thing I was looking for. All I need to do now if count the unneeded lines and ignore them when reading in the file.

Top Stuff Ingram :)

This discussion is closed to new replies.