Jump to content
Sign in to follow this  
Dizzy

How to get permissions of a registry hive?

Recommended Posts

Dizzy

Hi all,

i didn't found a function how to get the permissions of a registry hive.

For example: i want to get the permissions of "hkey_local_machine\SYSTEM\CurrentControlSet\Control\Lsa" in a text file or similar.

Can someone push me in the right way :)

Or - maybe someone has a little code? :)

Thanks for help!

Dizzy

post-83-1233835199_thumb.jpg

post-83-1233835331_thumb.jpg

Share this post


Link to post
Share on other sites
99ojo

Hi all,

i didn't found a function how to get the permissions of a registry hive.

For example: i want to get the permissions of "hkey_local_machine\SYSTEM\CurrentControlSet\Control\Lsa" in a text file or similar.

Can someone push me in the right way :)

Or - maybe someone has a little code? :)

Thanks for help!

Dizzy

Hi,

i didn't find one either. But maybe this link gives you a clue for using SetACL.exe and use the output in AutoIt. The Tool is FreeWare (The new version is published under the GPL):

http://www.helge.mynetcologne.de/setacl/#features

;-))

Stefan

Share this post


Link to post
Share on other sites
PsaltyDS

Hi,

i didn't find one either. But maybe this link gives you a clue for using SetACL.exe and use the output in AutoIt. The Tool is FreeWare (The new version is published under the GPL):

http://www.helge.mynetcologne.de/setacl/#features

;-))

Stefan

Agreed, but SetACL is hosted on SourceForge for download now: SetACL.exe Example #17

That example is for setting the ACL, but can be changed to only read it by using the 'list' action and specifying a backup file to save it to with -bckp:

SetACL.exe -on "hklm\software\AutoIt V3" -ot reg -actn list -lst "f:csv;w:d,s,o,g;i:y;s:n" -rec no -bckp "c:\Temp\setacl listing.txt"

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
Dizzy

Thanks for help!

I'll try setacl to get the permissions - but the output looks really bad :)

Dizzy

Share this post


Link to post
Share on other sites
99ojo

Thanks for help!

I'll try setacl to get the permissions - but the output looks really bad :)

Dizzy

Hi,

you are definetly right. Maybe this looks better:

SetACL.exe -on "hklm\software\AutoIt V3" -ot reg -actn list -lst "f:tab;w:d,s,o,g;i:y;s:n" -rec no > "c:\Temp\setacl listing.txt"

;-))

Stefan

Share this post


Link to post
Share on other sites
Dizzy

Hi Stefan,

yes - this looks manageable.

Thx from Hamburg :)

Dizzy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.