|
-
Sep 19th, 2000, 12:21 PM
#1
Thread Starter
Addicted Member
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?
-
Sep 19th, 2000, 06:06 PM
#2
Lively Member
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
-
Sep 20th, 2000, 04:13 AM
#3
New Member
Link
http://www.netfokus.dk/vbadmincode/
There are some good example to solve this problem
-
Sep 20th, 2000, 04:27 AM
#4
Conquistador
-
Sep 20th, 2000, 11:34 AM
#5
Lively Member
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
-
Sep 20th, 2000, 11:40 AM
#6
Lively Member
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
-
Sep 20th, 2000, 09:17 PM
#7
Conquistador
ok, but how come you posted it twice>?
-
Sep 21st, 2000, 10:38 AM
#8
Lively Member
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
-
Sep 21st, 2000, 05:49 PM
#9
Conquistador
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|