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

migrated from stackoverflow.com Jul 8 '11 at 6:39

This question came from our site for professional and enthusiast programmers.

  • 1
    If you type in D:\autorun.inf into Start->Run, does anything come up? – Mehrdad 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 . – 3498DB 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

"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

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

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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