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

By -snowy- ·
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

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

command line switches

by shasca In reply to How to get the groups tha ...
Collapse -


by c.ingram In reply to How to get the groups tha ...

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

Collapse -


by -snowy- In reply to GPRESULT

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 :)

Related Discussions

Related Forums