I want to get the owner name of a registry key, for example, return "TrustedInstaller" or "Administrator" etc. I have the setacl.exe, but it doesn't seem to have that function.
Hope this helps:
Thank you, but that didn’t solve my problem, I just want to get the owner's name of a registry key but not set it.
You can use PowerShell
A quick test with a key HKEY_CURRENT_USER\Identities:
$acl = Get-Acl HKCU:\Identities $owner = $acl.Owner echo $owner
9 people are following this question.