Personalization Change Icon of Drive in Windows 11


  • Staff
Drive_banner.png

This tutorial will show you how to change the icon of a drive to any icon for your account or all users in Windows 10 and Windows 11.

A drive icon is a graphical representation of a drive in File Explorer > This PC.

Windows will use a default icon for a drive based on what type of drive it is, such as a network drive, mapped drive, USB drive, internal drive, external drive, DVD drive, Windows drive, etc...

If you like, you can use your own custom icon for a drive instead of the default icon assigned to the drive by Windows.


Contents

  • Option One: Change Icon of Drive for Current User in Registry Editor
  • Option Two: Change Icon of Drive for All Users in Registry Editor
  • Option Three: Change Icon of Drive using autorun.inf File


EXAMPLE: Default and custom icon for connected USB drive

Drive_icon_before.png
Drive_icon_after.png





Option One

Change Icon of Drive for Current User in Registry Editor


It is recommended to use Option Three instead for removable drives since their drive letters could change.


1 Open Registry Editor (regedit).

2 Navigate to the registry key below in the left pane of Registry Editor. (see screenshot below)

HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives

If you do not have the Applications key, then right click on the Classes key, click/tap on New, click/tap on Key, type Applications for the key name, and press Enter to create it.

If you do not have the Explorer.exe key, then right click on the Applications key, click/tap on New, click/tap on Key, type Explorer.exe for the key name, and press Enter to create it.

If you do not have the Drives key, then right click on the Explorer.exe key, click/tap on New, click/tap on Key, type Drives, and press Enter to create it.


drive_icon_current_user_regedit-1.png

3 Right click on the Drives key, click/tap on New, click/tap on Key, type the capitalized drive letter (ex: "F") of the drive you want to change the icon of, and press Enter. (see screenshot above and below)

If you already have a drive letter sub key (ex: "F") for this drive letter (ex: "F") under the Drives key, then skip this step and go to step 4 instead.

If you ever change the drive letter of this drive, you will need to rename this drive letter sub key (ex: "F") to match the new drive letter.

To undo this, you would delete the drive letter sub key (ex: "F") for the drive, click/tap on Yes to confirm, and go to step 7.


drive_icon_current_user_regedit-2.png

4 Right click on the drive letter sub key (ex: "F") under the Drives key, click/tap on New, click/tap on Key, type DefaultIcon, and press Enter. (see screenshot below)

If you already have a DefaultIcon sub key under this drive letter key (ex: "F"), then skip this step and go to step 5 instead.


drive_icon_current_user_regedit-3.png

5 In the right pane of the DefaultIcon key, double click/tap on the (Default) string value to modify it. (see screenshot above)

6 Type the full path wrapped in quotes of the .ico file you want to use as the icon for this drive letter, and click/tap on OK. (see screenshot below)

drive_icon_current_user_regedit-4.png

7 You can now close Registry Editor if you like. (see screenshot below)

drive_icon_current_user_regedit-4.png

8 If File Explorer is currently open, close and reopen File Explorer (Win+E) to apply.




Option Two

Change Icon of Drive for All Users in Registry Editor


You must be signed in as an administrator to use this option.

It is recommended to use Option Three instead for removable drives since their drive letters could change.

This option will override Option One.


1 Perform the following steps to save the icon file into the C:\Windows folder: (see screenshots below)
  1. Open File Explorer (Win+E).
  2. Copy and paste the .ico file you want to use into the C:\Windows folder.
  3. Click/tap on Continue to approve.
  4. Close File Explorer.
drive_icon_all_users_regedit-1.png
drive_icon_all_users_regedit-2.png

2 Open Registry Editor (regedit).

3 Navigate to the registry key below in the left pane of Registry Editor. (see screenshot below)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons

If you do not have the DriveIcons key, then right click on the Explorer key, click/tap on New, click/tap on Key, type DriveIcons for the key name, and press Enter to create it.


drive_icon_all_users_regedit-3.png

4 Right click on the DriveIcons key, click/tap on New, click/tap on Key, type the capitalized drive letter (ex: "F") of the drive you want to change the icon of, and press Enter. (see screenshot above and below)

If you already have a drive letter sub key (ex: "F") for this drive letter (ex: "F") under the DriveIcons key, then skip this step and go to step 5 instead.

If you ever change the drive letter of this drive, you will need to rename this drive letter sub key (ex: "F") to match the new drive letter.

To undo this, you would delete the drive letter sub key (ex: "F") for the drive, click/tap on Yes to confirm, and go to step 8.



drive_icon_all_users_regedit-4.png

5 Right click on the drive letter sub key (ex: "F") under the DriveIcons key, click/tap on New, click/tap on Key, type DefaultIcon, and press Enter. (see screenshot below)

If you already have a DefaultIcon sub key under this drive letter key (ex: "F"), then skip this step and go to step 6 instead.


drive_icon_all_users_regedit-5.png

6 In the right pane of the DefaultIcon key, double click/tap on the (Default) string value to modify it. (see screenshot above)

7 Type the full path wrapped quotes of the .ico file you want to use as the icon of this drive, and click/tap on OK. (see screenshots below)

drive_icon_all_users_regedit-6.png

8 You can now close Registry Editor if you like. (see screenshot below)

drive_icon_all_users_regedit-7.png

9 If File Explorer is currently open, close and reopen File Explorer (Win+E) to apply.




Option Three

Change Icon of Drive using autorun.inf File


This option is great to use for removable drives (ex: USB or SD Card) since the custom icon will be used on any PC it is connected to.

This option will override Option One and Option Two.

This option will not work for mapped network drives, but you can use Option One or Option Two instead.

You must be signed in as an administrator to use this option to change the Windows "C" drive icon.


1 Turn on show file name extensions in the ribbon.

2 Open the drive (ex: "F") you want to change the icon of in File Explorer > This PC.

3 Copy the .ico file (ex: "USB.ico") you want to use into the root directory of this drive. (see screenshot below)

autorun.inf-4.png

4 Right click or press and hold on an empty space in the root directory of the drive, click/tap on New, and click/tap on Text Document. (see screenshot below)

If you already have a autorun.inf file in the root directory of this drive, then skip this step and go to step 6 instead.

If this is for the Windows C drive, you will not be able to directly create the autorun.inf file in the root directory of the Windows "C" drive. You will need to do steps 4, 5, 6, 7, and 8 on your desktop first, then move the autorun.inf to the root directory of the Windows C drive.


autorun.inf-1.png

5 Rename the New Text Document.txt file to autorun.inf, and click/tap on Yes to confirm. (see screenshots below)

autorun.inf-2.png
autorun.inf-3.png

6 Open the autorun.inf file in the root directory of this drive to edit it in Notepad. (see screenshot below)

autorun.inf-5.png

7 Enter the separate lines below into the autorun.inf file. (see screenshot below)

Code:
[autorun]
icon="<file name>.ico"

If any of these lines already exist in the autorun.inf file, then you would only add or change the icon line for the .ico file you want to use instead.

Substitute <file name> in the icon line with the actual name of the .ico file from step 3.

To undo this, you could either delete the icon line and save, or delete the autorun.inf file.



autorun.inf-6.png

8 When finished, click/tap on File on the menu bar, click/tap on Save, and close the opened autorun.inf file. (see screenshot below)

autorun.inf-7.png

9 Restart the computer to apply.

If this is for a removable drive, then you could just disconnect and reconnect the drive to apply instead.




That's it,
Shawn Brink


 

Attachments

  • Drive.png
    Drive.png
    2.7 KB · Views: 36
Last edited:
Some USB drives (made by Seagate and other vendors) come with a default drive icon.

Before you reformat the drive, don't forget to copy *.ico & AutoRun.inf files to a backup location. Otherwise, you won't find another exact copy after formatting the disk. Some users like keeping the original icons.
 

My Computer

System One

  • OS
    Windows 7
One of the most requested things we get asked and I wanted to know myself. I truly am amazed how on top of things you always are. As always virtual hugs sent your way. I've used the autorun method on removeable drives for ages but my mapped Google Drive has been nagging at me for years.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Back
Top Bottom