General discussion

  • Creator
    Topic
  • #2301483

    Finding Usergroups

    Locked

    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?

All Comments

  • Author
    Replies
    • #3383959

      Finding Usergroups

      by blackdiamond ·

      In reply to Finding Usergroups

      Hey,

      Take a look here for some info.

      http://tinyurl.com/ijy9

      Thanx

      • #3385386

        Finding Usergroups

        by mheath ·

        In reply to Finding Usergroups

        This link did not work. Cannot find server.

    • #3385632

      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

      • #3385387

        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.

    • #3385381

      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)

    • #3385374

      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.

Viewing 3 reply threads