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)In reply to Win32 module and listing groups by jjhorner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |