TieRegistry with IPConfig



I'm trying to remotely look at the NIC cards on W2K3 servers that I have
admin accounts on. When I run the following it gives me an error:

use strict;
use Win32::IPConfig;

my $ipconfig;
my $host = "some IP address"; # Changed the IP address for posting
$ipconfig = Win32::IPConfig->new($host); # This is where it fails when
ran with admin account.
print "hostname=", $ipconfig->get_hostname, "\n"; # This is where it
fails when ran without admin account.

This happens with admin account
C:\NIC>nic.pl
Can't use an undefined value as an ARRAY reference at
C:/Perl/site/lib/Win32/TieRegistry.pm line 720.

This happens without using admin account (It's not first getting
Win32::IPConfig->new($host))
C:\NIC>nic.pl
Can't call method "get_hostname" on an undefined value at C:\\NIC\nic1.pl
line 7.

Any suggestions on what I need to do to fix this problem?

Is it failing because TieRegistry.pm is not able to get the registry
settings for the NIC?

(I have not been having luck with anything I've tried to do to get the
NIC info from remote servers.)
.



Relevant Pages

  • Re: RDP Problems
    ... I have tried loging in using the admin account, ... SubjectUserSid S-1-0-0 ... TargetDomainName GRIFFIN ... Remote desktop ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote computer management in an XP Workgroup
    ... > or Local Users and Groups I get this error ... > and/or the remote machine in order to access the remote ... I currently have network connectivity and share ... > machine locally as an admin and adding the admin account ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Cant Log In
    ... Login Remotely and in Server Management Users Open Administrator and Check ... > (the Admin account is a member of the Admins and Domain Admins groups), ... > I can, however, log into the machine using that same account using Remote ...
    (microsoft.public.windows.server.sbs)
  • Terminal Server 2008 woes. Unable to print to network share
    ... I am testing terminal server 2008 and remote app. ... If I log into the server with the admin account, ... via the remote session. ...
    (microsoft.public.windows.server.general)
  • distributor_admin problem when configuring replication 18483
    ... I have read many of the postings on the 18483 error, ... I could then setup it up for the remote. ... Local and Remote user 'distributor_admin', ... Local and an admin account for remote, I receive an error that I am ...
    (microsoft.public.sqlserver.replication)