reg delete gives me "access is denied" but regedit delete is ok

Posted by Radek on Super User See other posts from Super User or by Radek
Published on 2012-10-18T22:34:23Z Indexed on 2012/10/18 23:04 UTC
Read the original article Hit count: 274

I need to delete a key from a command line. So I wanted to use reg delete "the key to be deleted" /f but I get ERROR: access is denied.

From the same login session (the same user) I am able to delete the key without any troubles from regedit.exe that is not run as administrator.

I cannot use runas command to execute reg that I believe would be to solution because in fact I want to use reg to delete registry entry for administrator profile so runas works again. More info in my other question Windows7 corrupted profile - prevention exists?

© Super User or respective owner

Related posts about windows-7

Related posts about command-line