2
2
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?
2@Ƭᴇcʜιᴇ007
Regedit.exe always runs as administrator
- that's simply wrong! – Wolf – 2015-01-15T08:45:49.520Regedit.exe always runs as administrator. How'd you manage to run it without it? Why isn't deleting it with Regedit enough to solve your Runas problem? – Ƭᴇcʜιᴇ007 – 2012-10-18T23:12:21.460
I need to delete the key from command line. – Radek – 2012-10-18T23:15:33.797