Discussion Locked
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 blackdiamond
by mheath
This link did not work. Cannot find server.
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 blackdiamond
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)
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.
Trending Windows Forum posts
Sort by Trending
1 helpful
17 replies
0 helpful
5 replies
0 helpful
12 replies
0 helpful
2 replies
Question
Is WSL still relevant in 2026?
0 helpful
1 reply