Dizzy Posted February 5, 2009 Share Posted February 5, 2009 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 Link to comment Share on other sites More sharing options...
99ojo Posted February 5, 2009 Share Posted February 5, 2009 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!DizzyHi,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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 5, 2009 Share Posted February 5, 2009 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 Link to comment Share on other sites More sharing options...
Dizzy Posted February 11, 2009 Author Share Posted February 11, 2009 Thanks for help! I'll try setacl to get the permissions - but the output looks really bad Dizzy Link to comment Share on other sites More sharing options...
99ojo Posted February 11, 2009 Share Posted February 11, 2009 Thanks for help!I'll try setacl to get the permissions - but the output looks really bad DizzyHi,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 Link to comment Share on other sites More sharing options...
Dizzy Posted February 17, 2009 Author Share Posted February 17, 2009 Hi Stefan, yes - this looks manageable. Thx from Hamburg Dizzy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now