How do I gain access to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib and its subkeys?

AndrewWissler-0704 96 Reputation points
2024-08-19T06:36:23.95+00:00

When I try to gain access to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib, I always receive an error saying that, "Registry could not set owner (or security) on the key currently selected, or its subkeys." How do I gain access to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib and its subkeys?

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,309 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hania Lian 13,936 Reputation points Microsoft Vendor
    2024-08-19T08:05:00.07+00:00

    Hello,

    You can follow these steps:

    Open Registry Editor:

    Press Win + R, type regedit, and press Enter.

    Navigate to the Key:

    Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib.

    Right-click on the Perflib key and select Permissions.

    Click on Advanced.

    Click Change next to the Owner field.

    Type your username and click Check Names.

    Click OK.

    Check the box that says Replace owner on subcontainers and objects.

    Click Apply and then OK.

    In the Permissions window, select your user account.

    Check the Full Control box under the Allow column.

    Click Apply and then OK.

    Hope this helps.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.