Hi Jenda, I get the same error even if i remvoe the backslashes.
Thanks, siva On 2/6/09, Jenda Krynicky <je...@krynicky.cz> wrote: > > From: perl pra <perl...@gmail.com> > > 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"; > > I do not think there should be the backslashes there. > > Jenda > ===== je...@krynicky.cz === http://Jenda.Krynicky.cz ===== > When it comes to wine, women and song, wizards are allowed > to get drunk and croon as much as they like. > -- Terry Pratchett in Sourcery > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >