I added the reference to Win32API::Registry and updated the connect call:
my $remKey= $Registry->Connect( $pc, $regKeyName, { Access=>Win32::TieRegistry::KEY_READ() } ) or Carp::croak("!! Couldn't connect to $pc or can't open reg key ($r +egKeyName).\n". "!! - Is File and Printer Sharing enabled?\n". Win32API::Registry::regLastError(). "\n");

Please forgive the package names in the code. This is actually part of my first Perl program (tm), and I applied a package name to my code, so I've been fully qualifying variables from config files, etc.)

I'm now getting a more explicable error message, Access is denied. I tried using regedit to connect remotely to the Vista box, and was denied access, so this appears to be the root cause, and gives me a quick reality check.

I will reply once I figure out how to fix the permission issue.

--- Update 1/23, 13:26 ---

On the Vista box, I started the Remote Registry Service and set it to Automatic. Now I can connect to the Vista registry remotely, using regedit; however...

I only have access to HKEY_USERS/ and its subkeys. Frustratingly, HKEY_LOCAL_MACHINE is visible, but presents the following error when I try to access it, Cannot open HKEY_LOCAL_MACHINE: Error while opening key. I've tried tweaking various local security policy settings. I guess this is more of a Windows question at this point. I will try pursuing it further on a Windows forum.


In reply to Re^2: Win32::TieRegistry and Vista (stabs) by Shade
in thread Win32::TieRegistry and Vista by Shade

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.