Access Denied to Registry Key This includes the dreaded error 0x90070005 which particularly comes up when uninstalling AVG Antivirus (Note: backslashes replaced by virtical line due to IWeThey display).
- Log in as Administrator
- Download or copy the Microsoft command line program subinacl.msi and run it to install. Tell it to install in C:|subinacl.msi to reduce typing.
- Open Command window and change Directory: cd |subinacl
- In this step, substitute the registry key you are having problems with. The one shown here is the one usually giving problems with AVG.
- subinacl /keyreg "HKEY_LOCAL_MACHINE|SOFTWARE|Microsoft|Windows NT|CurrentVersion|Windows" /owner=Administrator
- subinacl /keyreg "HKEY_LOCAL_MACHINE|SOFTWARE|Microsoft|Windows NT|CurrentVersion|Windows" /grant=Administrator=f
- subinacl /keyreg "HKEY_LOCAL_MACHINE|SOFTWARE|Microsoft|Windows NT|CurrentVersion|Windows" /grant=SYSTEM=f
- You should now be able to open the key. Check advanced permissions and you will probably find one or more entries that say Deny Everyone. Delete these.
- Now set up the exact permissions you need, if different from what's there automatically.