Hi Iso,

I can verify the behaviour you're seeing, but I can't explain it. The only
thing I've done for non-admins is to access HKCU. Everything else was as an
admin. I can't think right now why it is, but somehow it doesn't surprise me
that a non-admin can't access a remote registry - actually, that seems like
a pretty resonable restriction. I hope somebody can explain it.

Regards,
 Mark

> -----Original Message-----
> From: Ismail Mutlu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 9:22 PM
> To: Perl-Win32-Admin
> Subject: RE: TieRegistry question.
> 
> 
> Thanks Mark& Eric,
> 
> That worked. Now I am having trouble connecting to remote a 
> registry. If I try as a user with Domain Admin privs, I 
> connect fine. But If I try it as a regular user I get access 
> denied. As a reg. user, I can only open LMachine, but can't 
> go any deeper than that.
> 
> my $ServerRegKeys= $Registry->Connect( "$server_name", 
> "LMachine/Software/MY Software/My Prog/", {Access => 
> KEY_READ(),Delimiter=>"/"} ) ||&error_out(14,$^E); ;
> 
> I get Access Denied on this. If I take out everything except 
> LMachine it connects.
> 
> Any Suggestions.
> 
> Iso
> 
> -----Original Message-----
> From: Herbert, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 11:21 PM
> To: 'Perl-Win32-Admin'
> Cc: Ismail Mutlu
> Subject: RE: TieRegistry question.
> 
> 
> Hi Iso,
> 
> the default behaviour is to open a key with read/write 
> access. Normal users
> do not have write access to the HKLM/Software key. When you 
> open the key,
> specify the required access:
> 
> $hkey = $Registry->Open("LMachine/SOFTWARE/", {Access=>"KEY_READ"});
> 
> Regards,
>  Mark
> 
> > -----Original Message-----
> > From: Ismail Mutlu [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 3:05 AM
> > To: [EMAIL PROTECTED]
> > Subject: TieRegistry question.
> > 
> > 
> > Hello All,
> > The following script works for Administrator and power users, 
> > but it gives  the following error when I run it as a regular user:
> > 
> > The system could not find the environment option that was 
> > entered at D:\recallit\bin\reg_test.pl line 4.> 
> > Needles to say I am a newbe.
> > Thanks for your help,
> > 
> > Cheers
> > 
> > Iso
> > 
> > ####-- reg_test.pl--####
> > use strict;
> > use Win32::TieRegistry ( Delimiter=>"/", ArrayValues=>0 );
> > $Registry->Delimiter("/");                  # Set delimiter to "/".
> > my $swKey= $Registry->{"HKEY_LOCAL_MACHINE/SOFTWARE/"} || die $^E;
> > 
> > ####--------------------####
> > 
> > _______________________________________________
> > Perl-Win32-Admin mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> > 
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to