devslashneil has asked for the wisdom of the Perl Monks concerning the following question:
Thanks a lot.use Win32::NetAdmin qw/LocalGroupGetMembers UserGetAttributes UserSetAttributes/; my @users; LocalGroupGetMembers("",'Users', \@users) or die "GroupGetMembers() failed: $^E\n"; for(@users) { my ($server, $userName, $password, $passwordAge, $privilege, $homeDir, $comment, $flags, $scriptPath) = (); UserGetAttributes("",$_,$password,$passwordAge,$privil +ege, $homeDir, $comment, $flags, $scriptPat +h ) or die "UserGetAttributes() failed +$^E"; print "$username :: $password\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32::NetAdmin
by JamesNC (Chaplain) on Aug 11, 2003 at 05:36 UTC | |
Re: Win32::NetAdmin
by BrowserUk (Patriarch) on Aug 11, 2003 at 08:09 UTC | |
by devslashneil (Friar) on Aug 12, 2003 at 00:13 UTC | |
by BrowserUk (Patriarch) on Aug 12, 2003 at 08:25 UTC | |
Re: Win32::NetAdmin
by Anonymous Monk on Aug 11, 2003 at 12:57 UTC |