Hi All,

Can anybody help in accessing the registry of remote windows machine and get
the keys in the folder  *HKEY_LOCAL_MACHINE/SOFTWARE *
**
I have tried using win32::Registry, but i am getting the error "cannot open
the registry",But the same script works if i assign $node  to my local Ip.

Can somebody help me with the below script, so that this works for remote
IPs also.

please check the code below:


----------------------------------------------

#!/usr/bin/perl
use strict;
use warnings;

use Win32::Registry;
my ($node) = '\\\\your_ip_here';
my $Register='SOFTWARE';
my ($hNode, $hKey, @key_list);

$HKEY_LOCAL_MACHINE->Connect ($node, $hNode) or  die "Cannot connect to
$node";
$hNode->Open ("$Register", $hKey) or  die "Cannot open registry !";
$hKey->GetKeys(\...@key_list);
print "@key_list\n";
$hKey->Close ();

$hNode->Close ();
---------------------------------------------------


**

Reply via email to