Terry,
 
Here are few quick lines that should help you. I also recommend you pick up
Dave Roth's book "Win32 Perl Programming: The Standard Extensions". I have
learn so much from it.
 
############################################################################
####
use WIN32::NetAdmin;
$Mname = shift @ARGV;
if (!$Mname)
  {
   print "Enter the Machine name that you want to check here ==> ";
   chop ($Mname = <STDIN>);
  }
$Group2check = Administrators;
#
if (Win32::NetAdmin::LocalGroupGetMembers("\\\\$Mname", $Group2check,
\@userlist))
{
     print "\nGroupMember of $Mname -- $Group2check:\n\n";
     foreach $dd ( @userlist )
         {
           print "$dd\n";
            }
} 
else{
      print "Can't get the information form PC $Mname.\n";
    }
############################################################################
####
 
Gary Wong
Oregon Department of Transportation

-----Original Message-----
From: Terry Poperszky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Membership on group on local machine, not domain



Anyone got any hints on remotely checking membership in the administrators
group on the a local (not domain) machine account? Everthing I look at
either has to be executed on that local machine or is geared toward checking
domain groups.

BM__MailAutoSigTerry Poperszky MCSE, CCNA

Network Manager

SOS Staffing Services 

801-257-5706

[EMAIL PROTECTED]



_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to