Tricks : How to change hard drive icon in Windows 7

Change Hard Drive icon in Win7
First things first!
We are about to change system files, because the hard drive icon is stored in a system file called imageres.dll. So, always make your backups. Also, get familiar with the command prompt. I can’t stress enough how important it is. If you don’t know the basic command prompt commands, first go do some research on this. Search for examples of cd, dir, runas, copy, rename and other basic commands.
  1. Download Resource Editor for Windows 7 by following link:
         The current version of ResEdit is 1.5.4. You can dow
nload 32-bit or 64-bit version :

     2.Create a copy of imageres.dll stored in C:/Windows/system32
     3. Download Your New Hard Drive Icon.
Now that we’re armed with a cool resource editor and have a backup of imageres.dll we can try to hack some Windows 7 resources. Let’s do it!
Ok, wait? How am I supposed to know what image I have to change? That’s easy. A lot of system icons are stored in the system file imageres.dll. Luckily, I have compiled a list of icons that are stored in imageres.dll
2. The hard drive icon is icon #32
3. Open ResourceHacker
4. Make sure you close some programs or you might get the error message: Out of system resources
5. Open the file C:/Windows/system32/imageres.dll
6. Uncollapse IconGroup
Imageres Change icons
7. Uncollapse 32 and right-click on 1033. Then click on Replace Resource
Replace Resource
8. Next, click on Open file with new icon…
Replace hard drive icon
9. After selecting the Mac hard drive icon, it should appear in ResourceHacker. Now click on Replace
10. Now it should look like this with the new hard drive icon on the right:
Changing hard drive icon
11. IMPORTANT: Click on File – Save As
12. Create a directory where you store all your dll files in the future. Save the file as imageres.dll

Replace New Imageres.dll With Old Imageres.dll

Important: If you mess this up you might very well break your system. You will find endless tutorials on our site how to restore it (e.g. use sfc.exe) but you need to have at least some basic understanding of computers. Please, read through our tutorials first and do some further research, then you can safely try this on a VirtualPC first. Then when it works go for your real system.
13. Replace your imageres.dll (instructions below).
14. Don’t know how to replace your imageres.dll? Read our comprehensive guide How to replace shell32.dll 15. Keep in mind, even if you use the TakeOwnership script, you still have to give yourself permission. How to do that? All explained in the tutorial above (step 14). If you are a security freak you might want to remove that permission after replacing your imageres.dll
16. An important command to keep in mind is runas /u:Administrator cmd.exe, which you can enter into run (Windows key + R). Then you can move and copy files via command prompt.
18. Enjoy your new Mac hard drive icon:
New Mac Hard Drive Icon

How I Replace Imageres.dll

Here’s how I do it. This is my method, if you do it differently that’s ok. First I take ownership and take permissions via GUI. Then I open a command prompt with admin rights.
1) runas /u:Administrator cmd.exe
2) rename imageres.dll imageres.dll.bak
3) copy C:/path/to/imageres.dll C:/Windows/system32
4) restart explorer
5) possibly clear icon cache
6) done
There are probably easier ways to change the hard drive icon in Windows 7, but this is the most reliable way and will work if you do it right. Yes, replacing system files is a pain in the ***, but once you know how to do it it’s easy. I always replace the files via command prompt. All comands that you really need for this are: cd, copy, rename, dir, runas and you’re good to go!

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

    It's an remarkable post in support of all the online people; they will take benefit from it I am sure.
    Also visit my blog about iscsi

  2. gravatar Anonymous

    Unquestionably believe that which you said.
    Your favorite justification appeared to be on the internet the simplest thing to be aware of.
    I say to you, I certainly get irked while people think about worries that they just do not know about.
    You managed to hit the nail upon the top and also defined out
    the whole thing without having side effect , people can take a
    signal. Will likely be back to get more. Thanks

    Visit my site ... acoustic guitar chord

Leave a Reply

Recent Comments