Shade has asked for the wisdom of the Perl Monks concerning the following question:
I get the following message:#! c:\perl use strict; use warnings; my $Registry; use Win32::TieRegistry 0.24 ( TiedRef => \$Registry, Delimiter=>"/", ArrayValues => 1, SplitMult +is => 1, AllowLoad => 1, qw( REG_SZ REG_EXPAND_SZ REG_DWORD REG_BINARY REG_MULTI_SZ KEY_READ +KEY_WRITE KEY_ALL_ACCESS ), ); # ... $pc = remote machine name ... my $regKeyName = 'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Curren +tVersion/Uninstall/'; print STDERR "Checking the registry on $pc.\n"; 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$^E\n");
The system could not find the environment option that was entered
It doesn't seem to currently be a problem with Windows Firewall, as I turned it off and got the same message. At least the firewall is not the only problem. I've also added read permissions to HKEY_LOCAL_MACHINE\SOFTWARE\ on the Vista machine for Guest and Everyone, just in case this was the issue. I'm running out of ideas of how to get this to work.
Does anyone have suggestions? Ideally I'd only open up the permissions in Vista just enough to allow this to work.
I'm using ActivePerl 5.8.8 Build 819 and Win32::TieRegistry 0.24
Thanks much,
Jonathan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::TieRegistry and Vista (stabs)
by tye (Sage) on Jan 23, 2007 at 04:58 UTC | |
by Shade (Novice) on Jan 23, 2007 at 18:51 UTC | |
|
Re: Win32::TieRegistry and Vista
by almut (Canon) on Jan 23, 2007 at 00:08 UTC | |
by Shade (Novice) on Jan 23, 2007 at 00:34 UTC |