jjhorner has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a perl script that takes an array of uids, runs Win32::NetAdmin::LocalGroupIsMember to see if that group is a member of a set of groups, then appends that uid to a file for use in another application.
My problem is that there are over 60 groups that need to be checked, and putting the name of each group into a perl script sounds like a waste of time (I'm lazy). Is there a quick way to get the entire list of groups on a server (local groups)?
Once I get them, I can parse them for our group naming scheme, and run the script to get the uid, check each group to see if the uid is member, then, if positive, add that uid to a list, array, or whatever
I appreciate the help. I checked perldoc for anything of use in Win32::NetAdmin, but didn't see anything I could use. Everything is centered around someone knowing the group name to check already.
JJ (jjhorner)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 module and listing groups
by paulbort (Hermit) on May 22, 2000 at 22:46 UTC | |
by jjhorner (Hermit) on May 22, 2000 at 22:48 UTC | |
|
Re: Win32 module and listing groups
by jjhorner (Hermit) on May 22, 2000 at 21:14 UTC | |
|
Re: Win32 module and listing groups
by Maqs (Deacon) on May 22, 2000 at 19:23 UTC |