Discussion Locked

Finding Usergroups

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm running VB Scripts/WSCript for the logon scripts. I need to be able to see if a user exists in a specific group and then make a decision based on that being true or false. Does anyone know how to get user's groups or how to check if a user belongs to a specific group?

6 replies

by jackofalltech

I know Kix has a 'MemberOf()' function, I would think there is an analogous one in those languages.

Ralph

by mheath

I believe KIX uses NETAPI.DLL to use the MemberOf() Function. I will look into calling DLL functions from within VB Script. I am still looking to do this using nothing but VB Script/Windows Script.

Thanks for the response.

by mheath

I see this utility is command line only. I'm not sure how to get it's return using VB Script/Windows Script. The utility is helpful if I continue to use Batch files. However, we are wanting to start using VB/Windows Scripts because they run silent and hidden.

This discussion is closed to new replies.