One day when I opened My Computer I saw a strange icon for drive D: instead of the usual icon.

How can I restore the original icon? Here is a screenshot:

Screenshot of drive icon

  • 1
    If you type in D:\autorun.inf into Start->Run, does anything come up? – user541686 Jul 8 '11 at 6:29
  1. Launch a Command Prompt with administrator privileges, and navigate to the root of drive D:
  2. Run the following:

    attrib -r -h -s autorun.inf
    del autorun.inf

This will most likely solve your problem.

  • how to run CMD with admin privileges? – imdadhusen Jul 8 '11 at 9:18
  • @imdadhusen seems there was a formatting problem in the answer. It should be . not . – Gaff Jul 8 '11 at 10:26
  • yep its attrib<space>-s<space>-h<space>*.*<space>/S<space>/D – adeelx Jul 9 '11 at 19:35
  • @imdadhusen Open start, search for command prompt, right click the result and click run as administrator. – CausingUnderflowsEverywhere Nov 2 '16 at 16:06

Here's the solution that worked for me. (Windows 8.1) Open registry editor and navigate to

HKEY_CLASSES_ROOT \Applications \explorer.exe \ Drives\

First backup and then delete all Key with names of Drive for which the icons you need to restore. For example to restore drive icon of C: drive, delete Key "C". Once you are done restart your computer. In my case the culprit was hard disk sentinel which had left overs even after uninstall.

  • Interestingly, I have these values left by HDS, however, the drives in my computer are not missing the icon even though the file for the icon is missing. Either they modified another location as well or windows has cached the icon somewhere. – CausingUnderflowsEverywhere Nov 2 '16 at 16:18
  • Your answer is correct for my question, although my question got closed as a duplicate of this one. superuser.com/questions/1141225/… – CausingUnderflowsEverywhere Nov 2 '16 at 16:28
  • 1
    Ha! It was HardDisk Sentinel that broke mine, too! I went a-looking for an answer and found your solution here.. but it was after that that I read where you said it was HDS. HDS changed the drive icons for all drives, even though I had uninstalled it - it didn't clean up after itself. – bgmCoder Sep 7 '19 at 14:06

"right click -> properties" on D drive,
Under the "Customize" tab there is a area named "Folder pictures"
choose "Restore Default"

  • I have tried but still didn't get result! – imdadhusen Jul 8 '11 at 6:38
  • This doesn't always work. If the icons are set via a registry entry, that registry setting will take precedence, I think. – bgmCoder Sep 7 '19 at 14:07

If the drive is external: After following the solution with Command Prompt above, reconnect the drive to make the icon restore.


Right Click > Properties > In the name Field, type any name and apply and then tap ok

  • Well it might not be a general solution to the problem but atleast it works. Worked for me – mj1261829 Dec 18 '18 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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