Results 1 to 9 of 9

Thread: User Name

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    I have the user name and the group name. I need to figure out if the user is in the group... is there a way to do this?

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Cool

    I would use WMI to check that out. There's a WMI class that enumerates everthing in the registered program groups part of the registry.

    You just need to use an If statement to check if it fits your search criteria.
    C/C++,Delphi,VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
    I love deadlines. I like the whooshing sound they make as they fly by.
    —Douglas Adams

  3. #3
    New Member
    Join Date
    Aug 2000
    Location
    Germany
    Posts
    15

    Link

    http://www.netfokus.dk/vbadmincode/

    There are some good example to solve this problem

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    what's wmi?

  5. #5
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Cool

    WMI stands for Windows Management Instrumentation.

    It's a new microsoft scripting technology that's very powerful and fairly easy to use.

    Check it out at http://msdn.microsoft.com/downloads/...mi/default.asp

    There's a link for downloading the WMI SDK as well as to WMI resources.

    The package contains dozens of classes that allow you to programmatically get just about all possible system info.

    Like : BIOS info, Disk, Registry, Network (IP, subnet mask...), processor, sys resources of every kind plus video adapt. info. you name it you got it!

    No more complicated searching for API calls to try and get some basic info. WMI does all this and more. It's still new tech. though so do thorough testing before deploying.
    C/C++,Delphi,VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
    I love deadlines. I like the whooshing sound they make as they fly by.
    —Douglas Adams

  6. #6
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Cool

    WMI stands for Windows Management Instrumentation.

    It's a new microsoft scripting technology that's very powerful and fairly easy to use.

    Check it out at http://msdn.microsoft.com/downloads/...mi/default.asp

    There's a link for downloading the WMI SDK as well as to WMI resources.

    The package contains dozens of classes that allow you to programmatically get just about all possible system info.

    Like : BIOS info, Disk, Registry, Network (IP, subnet mask...), processor, sys resources of every kind plus video adapt. info. you name it you got it!

    No more complicated searching for API calls to try and get some basic info. WMI does all this and more. It's still new tech. though so do thorough testing before deploying.


    Check out someof my other posts for examples.
    C/C++,Delphi,VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
    I love deadlines. I like the whooshing sound they make as they fly by.
    —Douglas Adams

  7. #7
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    ok, but how come you posted it twice>?

  8. #8
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81
    I didn't! But I must be doing somethin' wrong cause that's
    the second time that has happened. I did several "preview
    reply" commands before doing a submit.

    Maybe there's a bug there somewhere.
    C/C++,Delphi,VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
    I love deadlines. I like the whooshing sound they make as they fly by.
    —Douglas Adams

  9. #9
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    there must be something wrong with the thingo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width