How to take ownership of a file from «TrustedInstaller» in Windows?

How to take ownership on a registry branch from «TrustedInstaller» in Windows?