Is their any way of taking ownership of keys in registry editor of the windws?

November 28th, 2009 | by admin |

I want to take the ownership of some keys in the registry editor of the windows without the consent of my system or network administrator. Is their any way to that ?

To take ownership of a registry key it is necessary to have a handle to the key. A handle to the key can be obtained by opening the key with a registry API (application programming interface) such as RegOpenKeyEx(). If the user does not have access to the registry key, the open operation will fail and this will in turn prevent ownership being taken (because a handle to the key is required to change the key[ASCII 146]s security)
First enable the TakeOwnership privilege and then to open the registry key with WRITE_OWNER.
Please note that you will need to initialize the security descriptor being passed to RegSetKeySecurity() and set the owner field to the new owner SID.
Taking ownership of a registry key is not a common operation. It is typically an operation that an administrator would use as a last resort to gain access to a registry key.

  1. One Response to “Is their any way of taking ownership of keys in registry editor of the windws?”

  2. By Redfox on Nov 28, 2009 | Reply

    To take ownership of a registry key it is necessary to have a handle to the key. A handle to the key can be obtained by opening the key with a registry API (application programming interface) such as RegOpenKeyEx(). If the user does not have access to the registry key, the open operation will fail and this will in turn prevent ownership being taken (because a handle to the key is required to change the key[ASCII 146]s security)
    First enable the TakeOwnership privilege and then to open the registry key with WRITE_OWNER.
    Please note that you will need to initialize the security descriptor being passed to RegSetKeySecurity() and set the owner field to the new owner SID.
    Taking ownership of a registry key is not a common operation. It is typically an operation that an administrator would use as a last resort to gain access to a registry key.
    References :

Post a Comment