Getting permissions using Win32::TieRegistry

Discussion in 'Perl Misc' started by Cosmic Cruizer, Mar 9, 2008.

  1. 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
    Cosmic Cruizer, Mar 9, 2008
    #1
    1. Advertising

  2. Cosmic Cruizer

    Thomas Kratz Guest

    Cosmic Cruizer wrote:
    > 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^.-
    Thomas Kratz, Mar 10, 2008
    #2
    1. Advertising

  3. Thomas Kratz <> wrote in
    news:47d5278f$0$2619$-rheiner.de:

    > Cosmic Cruizer wrote:
    >> 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
    >


    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.

    But thanks for letting me know about another useful tools.
    Cosmic Cruizer, Mar 12, 2008
    #3
  4. Cosmic Cruizer

    Thomas Kratz Guest

    Cosmic Cruizer wrote:
    >
    > 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^.-
    Thomas Kratz, Mar 12, 2008
    #4
  5. Thomas Kratz <> wrote in news:47d7add6$0$2620
    $-rheiner.de:

    > Cosmic Cruizer wrote:
    >>
    >> 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
    >


    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.
    Cosmic Cruizer, Mar 17, 2008
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    166
    darth
    Mar 10, 2005
  2. January Weiner

    Win32::TieRegistry

    January Weiner, Mar 3, 2006, in forum: Perl Misc
    Replies:
    5
    Views:
    120
    January Weiner
    Mar 6, 2006
  3. Replies:
    3
    Views:
    84
  4. Replies:
    6
    Views:
    214
    Paul Lalli
    Jun 1, 2006
  5. MoshiachNow
    Replies:
    0
    Views:
    90
    MoshiachNow
    Nov 21, 2006
Loading...

Share This Page