Getting permissions using Win32::TieRegistry

C

Cosmic Cruizer

I can get most of the registry info I need by using Win32::TieRegistry, but
I cannot figure out how to get the permissions for the keys. Is it possbile
to get the key permissions using TieRegistry? If not, is there a different
way to use Perl to get the registry key permissions?

Thanks
 
T

Thomas Kratz

Cosmic said:
I can get most of the registry info I need by using Win32::TieRegistry, but
I cannot figure out how to get the permissions for the keys. Is it possbile
to get the key permissions using TieRegistry? If not, is there a different
way to use Perl to get the registry key permissions?

Win32::perms is your friend.

Try:

ppm install http://www.roth.net/perl/packages/win32-perms.ppd

Thomas

--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-
 
T

Thomas Kratz

Cosmic said:
Thank you for the suggestion, but I'm not seeing how this will read the
permissions on a registry entry. It looks like it's geared towards file
permissions.

To quote directly from the Readme:

Currently the following objects are supported:
files
directories
registry keys
network shares
printer shares

Take a look at the example scripts, there are examples of getting and
setting registry permissions.

Thomas

--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-
 
C

Cosmic Cruizer

To quote directly from the Readme:

Currently the following objects are supported:
files
directories
registry keys
network shares
printer shares

Take a look at the example scripts, there are examples of getting and
setting registry permissions.

Thomas

Well Thomas... you're right, it does return the perms on the registry.
Thanks for suggestion.

Now all I need to do is to try and make heads-and-tails out of what's being
returned. But that will be for a different thread after I work with it a
bit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top