Why cannot administrators delete registry keys when they run regedit as administrators?

3

I am trying to completely remove McAfee from my Acer Aspire netbook. I downloaded MCPR.exe, and run it as an admin, in safe mode, but it fails to remove some registry keys. When I try to edit permissions for those keys, i get "permission denied", even though I am an admin, and run regedit as an admin. How should I remove those keys?

A-K

Posted 2010-09-06T23:23:43.277

Reputation: 155

If you check the permissions of the key(s) in question, and particularly the owner of same, you may find that you need to first take ownership to change the permissions. – BillP3rd – 2010-09-07T00:57:59.370

Answers

5

Right click on the Key in Question and select Permissions

alt text

Then click the advanced Button

alt text

Then click the Owner Tab, highlight your Admin account in the "Change Owner To" window, then tick the "Replace Owners on sub containers and objects" box and hit OK on all the open windows. closing all permissions windows.

alt text

Re open permissions on the same key and tick Full Control in the Allow column, hit OK

alt text

You should be able to delete the key now.

Moab

Posted 2010-09-06T23:23:43.277

Reputation: 54 203

1

Registry keys have ACLs that dictate permissions just like files and folders in the file system. Being Administrator does not give you implicit permission to modify or delete keys - you must either use an account that has been granted these rights or change the permissions accordingly.

You may find that the owner of the McAfee keys is SYSTEM. Try to have the Administrator account take ownership of the key and then allow Full Control.

NB: Take care when making modifications to the registry and be sure about the purpose of the change. Always make a backup - it's better to take the time to have a recovery option.

Ajw

Posted 2010-09-06T23:23:43.277

Reputation: 331

Ajw, how can I "have the Administrator account take ownership of the key" in Windows 7? – A-K – 2010-09-07T01:23:53.590

It's concerning that you have to ask but: right-click on key, Permissions, Advanced, Owner Tab, Change owner to: Administrators, Check Replace owner on subcontainers and objects, Apply, OK. – Ajw – 2010-09-07T02:05:13.727