Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,574 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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:
Take Ownership of a Registry Key And Assign Full Permissions
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