Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to delete a registry key from HKEY_LOCAL_MACHINE on a Windows 7 PC when a standard user is logged on, what would be the best way of doing this?

The command below works when logged on as administrator.

Reg DELETE HKLM\SOFTWARE\Test\ /f

Thanks Sean

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Non-privileged users cannot normally do that, unless you have edited the permissions on the registry key to allow for this.

share|improve this answer
add comment

If you have Admin credentials, go to c:\windows\ and right-click regedit.exe and choose Run As Administrator. then you should be able to do what you want. If not, see previous two answers.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.