Tricks : How to replace shell32.dll in Windows 7

In order to install Windows 7 shell themes manually, you will have to replace the shell32.dll. You basically can follow our guide that explains how to replace the explorer.exe file, but I wanted to give some very precise instructions for replacing this particular file.
Replace Shell32.dll

The easiest and shortest way to replace the explorer.exe and any other system files is to download a registry hack that will add the option Take Ownership to your right-click context menu.
Download this script: Download Or Mirror link1, Mirror link2  and double-click on the .reg (registry) file to add an option “Take Ownership” to your contextual menu (the right-click menu).

You can then right-click on your system files and take ownership of them. After that, you can rename all files and replace the system file / explorer.exe easily.
Important: It can happen that you are not able to copy modified system files into the Windows\system32 folder. I haven’t figured out when this happens, but when it happens to you, you should simply use the command line tool to copy the files (explanation below).

Replace Shell32.dll via Command Prompt (Recommended, Shorter)

1. Open up an elevated command prompt
2. Enter cd C:/Windows/system32
This is often not necessary, system32 is usually the default directory.
3. Enter TAKEOWN /f shell32.dll
Now we’ve taken ownership of the file. But that is not enough! Now that we have taken ownership of shell32.dll we need to give our account permission to modify the file. Or you will get a error message: “You need permission to perform this action” if you try to rename shell32.dll.
4. Enter ICACLS shell32.dll /grant USERNAME:F
Replace USERNAME with your username. Enter your username exactly (I’m not sure if this is case sensitive, so make sure you get it right).
5. You can now rename shell32.dll manually or via command line: rename shell32.dll shell32.dll.backup
6. Copy your modified shell32.dll into the folder: copy PATH_TO_MODIFIED_SHELL32.dll C:\Windows\system32\
Replace PATH_TO_MODIFIED_SHELL32.dll with the path to the modified shell32.dll. If you can’t make this work, simply CD into the folder and then run this line: copy shell32.dll C:\Windows\system32
Close your control panel and all other Windows. If a Windows processing is accessing the shell32.dll you can’t actually replace it, that’s also the reason why you have to terminate the process explorer if you want to replace the explorer.exe.
If you receive the error message: No mapping between account names and security ID’s was done, make sure the user actually exists and you typed it in correctly.
If everything fails, follow the beginner tutorial below to take ownership of shell32.dll via Windows File Properties.

Replace Shell32.dll via GUI (Not Recommended)

It is possible to replace the shell32.dll via GUI (graphical user interface). However, I strongly advise you to become familiar with the command line tool, which is a bit more difficult.
1. Open the Windows Explorer (Windows key + E)
2. Go to C:\Windows\System32\shell32.dll
3. Right-click on shell32.dll and click on Properties
4. Go to the tab Security at the top.
5. Click on the Edit button:
Shell32.dll advanced permissions
6. Go to the tab Owner
7. Click on Edit:
Edit Shell32.dll ownership
8. Select your username and click on Apply to take ownership of Shell32.dll:
Change Shell32.dll Ownership
9. Repeat 1-4 and go to the Shell32.dll Security tab
10. Select your username from the list of “Group or other usernames” and click on Edit:
Shell32.dll permissions
11. Select your username and check the option “Full Control”, then click on Apply:
Full Control Shell32.dll
12. You have now permission to rename shell32.dll. Rename it!
13. Copy the modified shell32.dll into the system32 folder.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response.
2 Responses
  1. gravatar Anonymous

    Hi, I do think this is an excellent blog. I stumbledupon it ;) I'm going to revisit yet again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

    my website - "vomit"

  2. gravatar Anonymous

    Nice blog! Is your theme custom made or did you download
    it from somewhere? A design like yours with a few simple adjustements would really make my blog jump out.
    Please let me know where you got your design.
    Thank you

    my page ... 19099

Leave a Reply

Recent Comments