#!/usr/bin/perl -w
use Win32::AdminMisc qw(GetDC GetGroups);
my $dc;
my @groups;
$dc = GetDC();
GetGroups($dc, GROUP_TYPE_ALL, \@groups);
my $item;
foreach $item(@groups) {
print "$item\n";
}
I get an error message:
bash-2.02$ perl dominfo.pl "GetDC" is not exported by the Win32::AdminMisc module at dominfo.pl line 3 "GetGroups" is not exported by the Win32::AdminMisc module at dominfo.pl line 3 Can't continue after import errors at dominfo.pl line 3 BEGIN failed--compilation aborted at dominfo.pl line 3. bash-2.02$
I'm not up on how perl modules and such work, so I don't know how to fix this :-(
In reply to Thanks
by pwhysall
in thread List of groups on Win32
by pwhysall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |