question

StevenYoung-5410 avatar image
0 Votes"
StevenYoung-5410 asked Castorix31 answered

How to get the owner name of a registry key?

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.

vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SSengupta-4080 avatar image
0 Votes"
SSengupta-4080 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StevenYoung-5410 avatar image
0 Votes"
StevenYoung-5410 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered

You can use PowerShell

A quick test with a key HKEY_CURRENT_USER\Identities:

 $acl = Get-Acl HKCU:\Identities
 $owner = $acl.Owner
 echo $owner 


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.