Try changing "server" to "\\\\server" or "//server"...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Rosen
Sent: Tuesday, June 07, 2005 9:35 AM
To: [EMAIL PROTECTED]
Subject: Win32::AdminMisc::GetGroups returns nothing
Trying to get all groups from a particular machine, but this returns nothing and will not even hit the 'else' portion. Seems to abort the script.
if( Win32::AdminMisc::GetGroups( "server", GROUP_TYPE_ALL, [EMAIL PROTECTED] ) ) {
print "The groups are:\n";
map { print "\t$_\n";} @list;
} else {
print "no\n";
}
Thanks.
_______________________________________________ Perl-Win32-Admin mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
