Win32::AdminMisc has a GetGroups method and a GetUsers method. Using those and comparing to your existing rights list should let you know what you are dealing with.
Also the external net command may be of help. Using system to get the output of:
net user
net user /domain
net group \\domaincontroller
net localgroup
should get you all the info you need to compare to. Keep them in a list and compare your directory and file findings against them.
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes! |