If you want to use net thru the shell you may want to verify the syntax. I believe you're missing a \ between the domain and username. However, I haven't tested to see if that reproduces the same output you're seeing.
................................ Kind regards Glenn Deans Sr. Systems Engineer Siemens Business Services, Inc. Bellefontaine, OH USA -----Original Message----- From: Arun Budhwani [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 1:00 PM To: [EMAIL PROTECTED] Subject: (no subject) I am having problems adding users to a global group. below is my code. My environmnet is NT4 Domain. Any feed abck would be greatly appreciated. se Win32::NetAdmin; use strict; my $cwid1 = ""; my $group= ""; my $server = ""; my $domain1=""; my $user=""; my $passwd=""; `net use \\\\$server /user:$domain1$user $passwd`; Win32::NetAdmin::GroupIsMember($server,$group,$cwid1); my $gle = Win32::GetLastError(); if ($gle) { print "\nAdding $cwid1 to group $group failed.".(Win32::FormatMessage($gle))."\n"; } else { print "\nSUCCESS for $cwid1 to $group\n"; } of course all the scalars have values which I removed. The error message I get is "verlapped I/O operation is in progress". __________________________________ 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 _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
