Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / How to Set a Custom Drive Icon in Windows

February 17, 2026

How to Set a Custom Drive Icon in Windows

By default, Windows Explorer displays standard icons for local, removable, or mapped network drives based on drive type. You can assign custom icon files to each drive to make navigation more convenient and intuitive for users. In this post, we’ll demonstrate how to manually configure custom icons for mapped network and local drives, as well as how to centrally assign network drive icons via Active Directory Group Policy.

You can set custom drive icons using these methods:

  • Using the autorun.inf file in the root of the drive’s file system
  • Via the registry for all users or only specific users.

Set custom drive icons in Windows 11

Prepare icon files for each drive whose appearance you want to customize. You can draw your own icons or find suitable ICO files on any online service. To ensure proper scaling and display of icons in Windows Explorer, create .ICO files containing multiple image resolutions (16x16, 32x32, 48x48, and up to 512x512). I used the online service https://redketchup.io/icon to combine multiple ICO files of different resolutions into a single ICO file. Windows automatically selects the correct resolution from the ICO file according to the display context.

First, let’s try assigning a custom ICO file to a specific drive letter through the registry:

  1. Copy your custom *.ico files to the %public%\Pictures directory Copy ICO files to public%\pictures directory
  2. Open the Registry Editor and navigate to: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons
  3. Create a subkey with the drive letter for which you want to change the icon. For example, Z
  4. Create a subkey named DefaultIcon under this key.
  5. Specify the path to the ICO file that you want to use as the drive icon in the Default value of the registry key. For example, %PUBLIC%\Pictures\reports.ico Change drive icon path in Registry

In Windows 11, refresh File Explorer (in previous Windows versions, restart the explorer.exe process) and verify that the new icon appears for drive letter Z.

You can quickly set the path to an ICO file for a drive from a command prompt. In this example, I assigned a custom icon to the O: drive.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\E\DefaultIcon" /ve /d "%PUBLIC%\Pictures\delivery.ico" /f

Change icons for any drive letter, including local and mapped network drivers

For local drives, in addition to the icon, you can change the drive description displayed in File Explorer. To do it, create a registry item:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\E\DefaultLabel" /ve /d "My custom drive description" /f

The description of mapped network drives can be changed through the HKCU (user) registry hive (in this example, the network folder has a UNC path \\fs01\docs):

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2##FS01#DOCS]"_LabelFromReg"="Public DOCS"

To display a custom folder icon for a specific user only, specify the path to the *.ICO file in that user’s registry key:

[HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\E\DefaultIcon]

@="%public\\pictures\my.ico"

You can customize the drive icon displayed using the autorun.inf file stored in the drive’s root directory. This is convenient for removable USB drives, which always display the same icon, regardless of their assigned drive letter.

  1. Copy the icon file to the drive whose icon you want to change. You can put it in the root directory or any other directory.
  2. Create an autorun.inf text file in the root directory of the drive. In this file, specify the relative path to the icon file and the description (optional).
    [autorun]
    label=Backup Keys USB Drive
    icon=backup.ico

    autorun.inf file with custom icon set

  3. Restart File Explorer and verify that your USB drive now has a new icon. Set a custom icon for a removable USB drive

You can centrally assign the same drive icons on all computers using a domain GPO. The Network Drive Mapping option in Group Policy Preferences doesn’t have a setting for configuring custom drive icons. GPO: map a shared folder

First, copy the ICO file to the users’ computers. Then, assign it as a drive icon through the registry.

  1. ICO files can be copied to users’ computers via Group Policy Preferences: Computer Configuration -> Preferences -> Windows Settings -> Files -> New -> File. Copy the file to %SystemDrive%\users\public\pictures\reports.ico Copy ICO file to computers via GPO
  2. Then, create a registry item for the target drive letter and set the copied ICO file as its icon. Create a registry key via GPO: Computer Configuration -> Preferences -> Windows Settings -> Registry -> New -> Registry Item: SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\Z\DefaultIcon (In this example, the drive is Z), Set the following REG_SZ value for the Default option: %SystemDrive%\users\public\Pictures\reports.ico Use Group Policy preferences to set the DefaultIcon property
  3. Update the GPO settings on the clients and verify that the custom icon now displays for drive Z.
Group Policies can also be used to hide certain drives or partitions from users.
0 comment
0
Facebook Twitter Google + Pinterest
Group PoliciesQuestions and AnswersWindows 10Windows 11
previous post
How to Restore a Missing or Disappeared Taskbar in Windows 11

Related Reading

Change BIOS from Legacy to UEFI without Reinstalling...

April 23, 2025

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

Find a Process Causing High Disk Usage on...

July 16, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

Fix: The referenced assembly could not be found...

March 25, 2025

How to Move (Migrate) Existing Windows Shares to...

December 24, 2025

SMB over QUIC: Mount File Share over Internet...

December 24, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Managing Per-User Services in Windows

    February 11, 2026
  • Change Default OU for New Computers and Users in AD

    February 2, 2026
  • Where Windows Stores Certificates and Private Keys

    January 22, 2026
  • How to Remove Old (Unused) PowerShell Modules

    January 12, 2026
  • How to Move (Migrate) Existing Windows Shares to a New File Server

    December 24, 2025
  • Using KDC (Kerberos) Proxy in AD for Remote Access

    December 23, 2025
  • Windows: Create (Install) a Service Manually

    December 16, 2025
  • Windows: Auto Switch to Strongest Wi-Fi Network

    December 10, 2025
  • How to Enable or Disable VBScript in Windows after Deprecation

    December 10, 2025
  • Start Menu Not Working (Unresponsive) on Windows Server RDS

    November 27, 2025

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • Configure NTP Time Source for Active Directory Domain
  • Exclude a Specific User or Computer from Group Policy
  • Configure Windows to Auto Restart/Shutdown with Task Scheduler
  • AppLocker: Configure Application Restriction Policies in Windows
  • How to Enable or Disable Windows Defender Firewall
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top