Re: Cannot Delete Registry Key

From: Brian Pritts (
Date: 08/18/05

Date: 17 Aug 2005 17:07:37 -0700

Thanks for the response.

Unfortunately, I have done all of the prescribed steps. I have
assigned full control permissions on the invalid key, and have also
tried to take ownership of the key. For some reason, it will not allow
me to delete it. I am an administrator on this machine, and according
to the permissions on the bad key, I have full control. Any other


Wesley Vogel wrote:
> Forget regedt32, use regedit.
> [[Regedt32.exe
> In Windows XP and Windows Server 2003, Regedt32.exe is a small
> program that just runs Regedit.exe. ]]
> Differences Between Regedit.exe and Regedt32.exe
> Caution
> [[Incorrectly editing the registry may severely damage your system. Before
> making changes to the registry, you should back up any valued data on your
> computer. ]]
> Try this...
> Reset the registry permissions
> As soon as you have found the registry subkey that has the incorrect
> permissions, update the permissions for that subkey.
> To update the permissions of the registry subkey, follow these steps:
> a. Click Start, click Run, type regedit, and then click OK to start
> Registry Editor.
> b. Locate and right-click the registry subkey:
> and then click Permissions.
> c. Under Group or user names, click Administrators.
> d. Under Permissions for Administrators, make sure that the Allow check box
> for the following entries is selected:
> Full Control
> Read
> e. Click Apply, and then click OK.
> f. On the File menu, click Exit to quit Registry Editor.
> Open the Registry Editor again and see if you can delete the key now.
> If not, try this...
> Start | Run | Type: regedit | OK |
> Navigate to >>>
> the said key
> Right click the key in the left hand pane | Permissions... | Advanced
> button | Owner tab | click the new owner and then click OK.
> [[You can take ownership of a registry key if you are logged on as an
> administrator or if you have been specifically assigned the permission to
> take ownership of the registry key by the current owner. ]]
> See permissions, registry in Registry Editor HELP.
> To assign permissions to a registry key
> To assign special access to a registry key
> To grant Full Control of a registry key
> To add users or groups to the audit list
> To add users or groups to the Permissions list
> To remove a user or group from the Permissions list
> To take ownership of a registry key
> --
> Hope this helps. Let us know.
> Wes
> MS-MVP Windows Shell/User
> In,
> Brian Pritts <> hunted and pecked:
> > Hello, I am in the process of cleaning spyware off of a computer and
> > have almost completely cleaned it. However, one registry key remains
> > that just will not go away. The key is
> > HKLM\Software\ShudderLTD\PSGuard. I have tried to use regedt32 and
> > take ownership of this key, and I am logged in as an administrator of
> > this machine. I continually get a cannot delete registry key error.
> > Also, this is the only problem that is found in Spybot, and spybot will
> > not "fix" the problem either.
> >
> > I have done all the major spyware and virus sweeps in safe mode, and
> > have followed normal best practices for removing spyware. This one key
> > eludes me. Can anyone help?
> >
> > Thanks.