A
Arun
I can't understand why I cant add users to a group
using this script. If I change the Netadmin line to
read GroupIsMember instead of GroupAddUsers, I can
check if the user belongs to a group. the error
message I get form this script is "Overlapped I/O
operation is in progress".
use Win32::NetAdmin;
use strict;
my $cwid1 = "test";
my $group= "testgroup" ;
my $server = "testdc";
my $domain1="dc\\";
my $user="";
my $passwd="";
`net use \\\\$server /user:$domain1$user $passwd`;
if
(Win32::NetAdmin::GroupAddUsers($server,$group,$cwid1)){
print "\"$cwid1\" has been added to the group
$group!\n";
}
else {
print "\"$cwid1\" cannot be found!\n";
using this script. If I change the Netadmin line to
read GroupIsMember instead of GroupAddUsers, I can
check if the user belongs to a group. the error
message I get form this script is "Overlapped I/O
operation is in progress".
use Win32::NetAdmin;
use strict;
my $cwid1 = "test";
my $group= "testgroup" ;
my $server = "testdc";
my $domain1="dc\\";
my $user="";
my $passwd="";
`net use \\\\$server /user:$domain1$user $passwd`;
if
(Win32::NetAdmin::GroupAddUsers($server,$group,$cwid1)){
print "\"$cwid1\" has been added to the group
$group!\n";
}
else {
print "\"$cwid1\" cannot be found!\n";