in reply to Re: Scanning of 64 Bit registry
in thread Scanning of 64 Bit registry

Hi,

Thanks for your Support...

here i will give you detailed description.I am able to access keys when i am using

my @Keys_Lmachine = keys %{$RegHash{LMachine}{SOFTWARE}};

but if i change my query to

my @Keys_Lmachine = keys %{$RegHash{LMachine}{SYSTEM}}; it is returning undef

may be it is because SOFTWARE is a shared subkey but not sure....

Please comment..

Regards

Vikas Sharma

Replies are listed 'Best First'.
Re^3: Scanning of 64 Bit registry
by wwe (Friar) on Jan 12, 2011 at 18:53 UTC
    Hi Vikas,

    this is not true. HKLM/System is shared/same but HKLM/Software/<some subkeys> is redirected or "reflected" how MS says. Please read and understand all provided links to MS knowledge base.

    At the moment I have no 64-bit system to check but I'm pretty sure the problem is somewhere else. I use OO-style access to the Win32::TieRegistry object like this
    my $registry_obj = $Registry->Connect( $hostname, $registry_key, { Acc +ess=>'KEY_READ' } ) or do { $log->error("access to [$registry_key] on host [$hostname] f +ailed"); return; }; $registry_obj->SetOptions( SplitMultis => 0 ); $registry_obj->SetOptions( FixSzNulls => 0 ); $registry_obj->SetOptions( ArrayValues => 0 ); $registry_obj->SetOptions( DWordsToHex => 1 ); } ... foreach my $registry_subkey ( $registry_obj->SubKeyNames() ) { something; }
    but I don't think it makes any difference. regards willi

      Hi all,

      That problem is solved without any modification actually it was permission issue i gave all previliages to that particular key and that issue was resolved

      Thanks all for Your responses

      Regards

      Vikas Sharma

      <Together we can we will !