windows xp registry permissions fix

I have been getting a really annoying problem on my home machine, trying to install the latest patch to iTunes. The install seemed to go fine, until Windows XP was installing the QuickTime specific files, at which point I would get error

Could not open key: HKEY_LOCAL_MACHINE\ Software\ Classes\ QuickTimePlayerLib.QuickTimePlayerApp\ CLSID. Verify that you have sufficient access to that key, or contact your support personnel

at which point the install rolled back, and failed.

Being my own support personnel I spent considerable time running regedit to look at this registry key. Even though I was logged in as an administrator, I could see a whole list of QuickTime keys, but when I clicked on any of them I get an “error while opening key” message.

I tried all the usual steps suggested on the Google to find a way around this but nothing. Nothing on Windows support forums either. A lot of them suggested changing permissions on the key. To do this, you would right click on the key and select Permissions… then add users and the permission levels, but when I clicked OK, I got an “access is denied” message.

Then, tonight, success!

Here’s the fix, buried at the bottom of this forum:

1. Download and install subinacl, which is a Microsoft command-line tool that enables administrators to obtain and update security information about files, registry keys, and services.

2. Create a file named reset.cmd in C:\Program Files\Windows Resource Kits\Tools folder.

3. Edit the reset.cmd file with the following content.

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=systems=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=system=f

4. Back up your Windows registry (just in case)

5. Enter into CMD prompt (click Start, Run…, enter “cmd” and click OK).

6. Enter the following commands one at a time and click Enter.

cd\
cd "C:\Program Files\Windows Resource Kits\Tools"
reset.cmd

The tool took a few minutes to run – I tried not to freak out about all the text zooming by. Once the utility had completed, I went back to regedit and saw that the QuickTime keys which had had no information now had key values and permissions. I re-ran the iTunes installer, and everything worked smoothly.

You’re welcome.

10 Responses to “windows xp registry permissions fix”

  1. Robin (bro) says:

    Er… well yes, when you put it like that it’s obvious really…

  2. Martin Hogg says:

    Bloody techie :-)

  3. Erika says:

    HOT DAMN Andrew! Very cool!

  4. Fidoboy says:

    I’ve executed the script but it still doesn’t solved my permissions in the registry. There is another method to restore default registry permissions in my registry?

  5. Hmm, if this doesn’t work I’m not aware of anything else – this was a last resort for me and I didn’t dig any deeper. Sorry not to be able to help further.

  6. Juan Serrano says:

    ok plz. im up tot he point where u say to create the file reset.cmd .
    what do u mean by create a file? like a text document? cause i did that then followed the next steps n it didnt work. also, how do i Back up my Windows registry??? plz help i got an ipod nano n cant download freaking itunes.

  7. Hi Juan – about creatng the reset.cmd file you should create a text file, copy and paste in the contents listed here, save and close the file, then in Windows explorer rename it to reset.cmd. You should get a Windows message warning you about changing the file extension – if you do click yes to change it to .cmd. What might be happening to you is that Window is saving your file as reset.cmd.txt – that’s what I’m thinking anyway.

    Also to back up your registry there should be a backup option in the registry editor (click Start then Run… then type regedit to run the editor).

    Also these steps may only work for Windows XP…

  8. Peixinho says:

    I’ve done your process and still go no permission… And it even appeared the following error message:
    “Could not open key: HKEY_LOCAL_MACHINE\ Software\ Classes\Interface\{4added78-c61f-4530-86be-ee3e2e28b0f3}\TypeLib. Verify that you have sufficient access to that key, or contact your support personnel”
    With this I’m beginning to freak…

  9. addina says:

    i have similar problem when i tried to download itunes and quicktime it says could not open key : HKEY_LOCAl_MACHINE\software\microsoft\windows\…\{02BF25D5-8C17-4B23-BC80-D3488ABDDC6B} how can i solve this problem?Pls somebody help me!!

  10. tim says:

    Thanks! I got tired of setting permissions one-by-one. Your solution worked like a charm.

Leave a Reply