I don't know if this helps but I usually setup the server variable
like this $server = "\\\\server.domain.com"; or just $server = 
"\\\\server" and that always works in the GroupAddUsers function.

On Mon, 26 Jan 2004, Arun Budhwani wrote:

> 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";
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 

-- 
  Clint Mahoney
  The Herald-Times
  http://clintmahoney.com
  (812) 331-4236


_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to