I think we can use "Trustee" value with SetACL.exe
Found also some help here: posted by justibus
http://www.msfn.org/...post__p__979320
I think we can do that using:
setowner -ownr "n:S-1-5-32-544;s:y"
I tried on my french Windows 7 OS and works.
Example:SetACL.cmd
@echo off
cmd /c C:\Se7en_UA\Tools\x86\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\CTF\TIP\{3697C5FA-60DD-4B56-92D4-74A569205C16}\LanguageProfile\0x0000ffff\{B77BF1FB-C8B4-490F-A5FE-AFE99BBBB490}" -ot reg -actn setowner -ownr "n:S-1-5-32-544;s:y" -rec yes
cmd /c C:\Se7en_UA\Tools\x86\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\CTF\TIP\{3697C5FA-60DD-4B56-92D4-74A569205C16}\LanguageProfile\0x0000ffff\{B77BF1FB-C8B4-490F-A5FE-AFE99BBBB490}" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full;s:y;i:so,sc;m:set;w:dacl" -rec yes
reg delete "HKLM\SOFTWARE\Microsoft\CTF\TIP\{3697C5FA-60DD-4B56-92D4-74A569205C16}\LanguageProfile\0x0000ffff\{B77BF1FB-C8B4-490F-A5FE-AFE99BBBB490}" /f
pause to see if errors
Command prompt result:
---------------------------------------------------------------------------------------------------------------------------
INFO: Processing ACL of: <machine\SOFTWARE\Microsoft\CTF\TIP\{3697C5FA-60DD-4B56
-92D4-74A569205C16}\LanguageProfile\0x0000ffff\{B77BF1FB-C8B4-490F-A5FE-AFE99BBB
B490}>
SetACL finished successfully.
INFO: Processing ACL of: <machine\SOFTWARE\Microsoft\CTF\TIP\{3697C5FA-60DD-4B56
-92D4-74A569205C16}\LanguageProfile\0x0000ffff\{B77BF1FB-C8B4-490F-A5FE-AFE99BBB
B490}>
SetACL finished successfully.
Appuyez sur une touche pour continuer...
---------------------------------------------------------------------------------------------------------------------------
Regards
This post has been edited by myselfidem: 28 January 2012 - 02:35 AM