General discussion

Locked

Finding Usergroups

By mheath ·
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?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Finding Usergroups

by BlackDiamond In reply to Finding Usergroups

Hey,

Take a look here for some info.

http://tinyurl.com/ijy9

Thanx

Collapse -

Finding Usergroups

by mheath In reply to Finding Usergroups

This link did not work. Cannot find server.

Collapse -

Finding Usergroups

by JackOfAllTech In reply to Finding Usergroups

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

Ralph

Collapse -

Finding Usergroups

by mheath In reply to Finding Usergroups

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.

Collapse -

Finding Usergroups

by BlackDiamond In reply to Finding Usergroups

Hey,

It works fine for me. Here is where is where it leads.

http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/ifmember-o.asp
(Remove Any Spaces That Magically Appear)

Collapse -

Finding Usergroups

by mheath In reply to Finding Usergroups

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.

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums